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

ADO
ADO介绍
ADO数据库连接
ADO记录集
ADO显示记录
ADO查询语句
ADO记录排序
ADO添加记录
ADO更新记录
ADO删除记录
ADO演示
ADO提升执行速度
ADO Command对象
ADO Connection对象
ADO Error
ADO Field
ADO Parameter
ADO 属性
ADO Record
ADO Recordset
ADO Stream

ADO LoadFromFile 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 428 ::
收藏到网摘: 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

登陆 | 还没注册?