FileSystemObject

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top