亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

如何一行行地讀取文件?

 更新時(shí)間:2006年11月16日 00:00:00   作者:  

dim input(30)

' 定義一個(gè)數(shù)組,大小可隨時(shí)更改.這里為了顯示方便.

file_path=Server.Mappath("index.html")

Set fs=Server.CreateObject("Scripting.FileSystemObject")

Set file_open=fs.OpenTextFile(file_path)

n=0

Do While Not file_open.AtEndOfStream

n=n+1

fileline=file_open.readline

input(i)=fileline

' 將文件內(nèi)容讀入input數(shù)組.

Loop

file_open.close

Set fs=Nothing

 

另外,對(duì)于二進(jìn)制數(shù)據(jù),我們也可以用Read()來(lái)讀取,如:

file_open.Read(200)

就是讀取file_open中的200個(gè)數(shù)據(jù)。

相關(guān)文章

最新評(píng)論