S
siggy
in FP2003 ( posting to a Linux server )
I am using a form to display the contents of a
text file on the server -- works great......
Then I can edit the text and submit to an ASP page
----------------------------------------------
strText = Request.Form("formtext")
Set MyFileObj=Server.CreateObject("Scripting.FileSystemObject")
Set MyOutStream=MyFileObj.OpenTextFile(Server.MapPath("content.txt"), 2,
TRUE)
MyOutStream.Write(strText)
MyOutStream.Close
Set MyOutStream = nothing
Set MyFileObj = nothing
--------------------------------------------
PROBLEM - when I re-display the form with
that now NEW text from the text file,
the first few characters are garbage sysmbols,
but the rest of the text is OK
ken
I am using a form to display the contents of a
text file on the server -- works great......
Then I can edit the text and submit to an ASP page
----------------------------------------------
strText = Request.Form("formtext")
Set MyFileObj=Server.CreateObject("Scripting.FileSystemObject")
Set MyOutStream=MyFileObj.OpenTextFile(Server.MapPath("content.txt"), 2,
TRUE)
MyOutStream.Write(strText)
MyOutStream.Close
Set MyOutStream = nothing
Set MyFileObj = nothing
--------------------------------------------
PROBLEM - when I re-display the form with
that now NEW text from the text file,
the first few characters are garbage sysmbols,
but the rest of the text is OK
ken