龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp编程 >

asp fso:只读一行文本

时间:2012-12-31 22:56来源:未知 作者:admin 点击:
分享到:

asp fso:只读一行文本ReadLine

set t=fs.OpenTextFile("c:test.txt",1,false)
x=t.ReadLine
t.close
Response.Write("The first line in the file ")
Response.Write("contains this text: " & x)

这样我们就可以只读取一行了喽.下面来看看readall读取全部的内容

dim fs,f,t,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:test.txt")
fs.readall;

www.111cn.cn/asp/asp.html


精彩图集

赞助商链接