Need help with writing to a file
Fernando Raineri
raineri at mail.chem.sunysb.edu
Sun Jun 1 12:40:02 EDT 2003
Hello again.
> The above goal is working. But I would also like to write
> the information contained in the variable theText into a file,
> say "try.txt" in the Desktop.
> This I can't find the way to do it. I have tried the line
> put theText into URL "file:/fallRains/Users/fernando/Desktop/try.txt".
> I have also tried the "open file to write; write to file; close file"
> approach, but also can't make it to work.
> Perhaps there is some setting that I'm missing, or there is something
> very fundamental that I'm not doing correctly (like the filePath
style,
> perhaps?).
I just found my error; it was in the filePath, which I was
writing with the hard drive. But when I use
put theText into URL "file:/Users/fernando/Desktop/try.txt"
it works.
I apologize for my confusion.
Thank you.
Fernando
More information about the use-livecode
mailing list