欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP Read 方法

定義和用法

Read 方法從 TextStream 文件中讀取指定數(shù)量的字符,并以字符串返回結(jié)果。

語(yǔ)法:

TextStreamObject.Read(numchar)
參數(shù) 描述
numchar 必需的。需從文件中讀取字符的數(shù)目。

實(shí)例

<%
dim fs,f,t,x
set fs=Server.CreateObject("Scripting.FileSystemObject") 
set f=fs.CreateTextFile("c:\test.txt")
f.write("Hello World!")
f.close

set t=fs.OpenTextFile("c:\test.txt",1,false)
x=t.Read(5)
t.close 
Response.Write("The first five characters are: " & x)
%>

輸出:

The first five characters are: Hello