取得列數(shù)

代碼:

<!DOCTYPE html>

<html>

<body>

 

<%

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

 

Set f=fs.OpenTextFile(Server.MapPath("testread.txt"), 1)

Response.Write(f.Read(2))

Response.Write("<p>The cursor is now standing in position " & f.Column & " in the text file.</p>")

f.Close

 

Set f=Nothing

Set fs=Nothing

%>

 

</body>

</html>

結(jié)果:

He

The cursor is now standing in position 3 in the text file.

相關(guān)文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频