At 03:12 AM 11/17/00, [EMAIL PROTECTED] wrote:
>new yourname(Xtra"fileio")
>openfile(yourname,"the filepath\txt.document")
>Write(yourname,"the string")
>OK!
Did you actually try that? You won't get very far with it.
If your intent was to simply open the file and writeString() the new text,
then you'll find (once you get the commands correct) that overwriting a
longer string with a shorter string does not replace the entire string. It
replaces the text up to the length of the shorter string while leaving the
rest of the longer string in place. That's why one must delete the file
before writing the new data. See Ramesh's post for an example.
--
Mark A. Boyd
Keep-On-Learnin' :)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]