
October 26th, 2003, 07:46 PM
|
|
Junior Member
|
|
Join Date: Oct 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
File I/O, and Textarea crlf help pls
I've have done numerous searches on the net and this site, but I can' seem to find a answer that fits right. The idea is, I am using a form/textarea to allow a user to imput html code. This gets saved on a file (User.txt)on the server; that works. The problem is, when I try to do the file output and read that file (User.txt) back into a form/textarea, it is impossible for me to do so without everyting staying on the same line.
this is the main output code (I used a do while loop):
If not objTextStream.AtEndOfStream Then
Do While not objTextStream.AtEndOfStream
strText = objTextStream.ReadLine
Response.Write strText & "<br>"
Loop
End If
I've also tried :
strText = replace(strText,vbcrlf,Chr(10))
Response.Write "<pre>" & server.htmlencode(strText) & "</pre>"
in the loop, none of which works. Any help would be thankful.
|