W3Schools.com

ADO LoadFromFile Method


Stream Object Reference Complete Stream Object Reference

The LoadFromFile method is used to load the contents of an existing file into an open Stream object. All existing data in the Stream object will be overwritten.

Note: After a call to this method, the current position is set to the beginning of the Stream (Position=0). 

Tip: This method can be used to upload the contents of a file to a server.

Syntax

objStream.LoadFromFile filename

Parameter Description
filename Required. The name of an existing file to be loaded into a the Stream object

Example

<%
objStream.LoadFromFile "c:/temp/w3schools.txt"
%>


Stream Object Reference Complete Stream Object Reference
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE