略过文本文件的一部分

代码:

<!DOCTYPE html>

<html>

<body>

<p>The first four characters in the text file are skipped:</p>

 

<%

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

 

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

f.Skip(4)

Response.Write(f.ReadAll)

f.Close

 

Set f=Nothing

Set fs=Nothing

%>

 

</body>

</html>

结果:

The first four characters in the text file are skipped:

o! How are you today?

相关文章