69pao国产精品视频-久久精品一区二区二三区-精品国产精品亚洲一本大道-99国产综合一区久久

讀文本文件

代碼:

<!DOCTYPE html>

<html>

<body>

<p>This is the text in the text file:</p>

<%

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

 

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

Response.Write(f.ReadAll)

f.Close

 

Set f=Nothing

Set fs=Nothing

%>

</body>

</html>

結(jié)果:

This is the text in the text file:

Hello! How are you today?

相關(guān)文章