网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: ADO :: ADO LoadFromFile 方法

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

ADO LoadFromFile 方法


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:1732 :: ::

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.
LoadFromFile的作用是:将一个文件的内容装载入一个记录流对象中。所有记录流对象中现存的数据都会被覆盖。

Note: After a call to this method, the current position is set to the beginning of the Stream (Position=0). 
注意:在请求了该方法之后,当前指针位置将会被设置在这个记录流的起始处(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"
%>

评论 (0) All