|
<%
function HTMLDecode(fString)
fString = replace(fString, ">", ">")
fString = replace(fString, "<", "<")
fString = Replace(fString, "", CHR(13))
fString = Replace(fString, "</P><P>", CHR(10) & CHR(10))
fString = Replace(fString, "<BR>", CHR(10))
HTMLDecode = fString
end function
dim btext,fso,otext
btext=HTMLDecode(request.form("text"))
local=server.mappath("1.doc")
set fso=server.CreateObject("scripting.filesystemobject")
set otext=fso.opentextfile(local,2,true)
otext.write btext
otext.close()
set otext=fso.opentextfile(local,1,true)
counter=0
do while not otext.atendofstream
counter=counter+1
rst=otext.readline
response.write rst
loop
otext.close()
%>
这样就可以换行了 |
|