【www.gdgbn.com--面向对象编程】

下在我们来看看吧,这我们用fso来读取文件并进行换行操作哦。

<%cz = request("cz")
wjn = request("content")

""读文件
set fso = Server.Createobject("Scripting.FileSystemObject")
set file=fso.opentextfile(Server.mappath("tb/tb.htm"),1,False)
do while file.AtEndOfStream<>true
 wjnr = wjnr + file.ReadLine() & chr(13)
loop
file.close
set file = nothing
set fso = nothing
%>

本文来源:http://www.gdgbn.com/jsp/20560/