当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO LoadFromFile 方法

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO LoadFromFile 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 429 ::
收藏到网摘: n/a

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

登陆 | 还没注册?