[Solved] Writing data to text file
Posted: Mon May 20, 2019 8:03 pm
Hi guys,
I found two different ways of writing data into text files. Both methods work for me, so I am wondering what may be the difference between them? Any advantages or disadvantages?
1.
2.
I found two different ways of writing data into text files. Both methods work for me, so I am wondering what may be the difference between them? Any advantages or disadvantages?
1.
Code: Select all
put specialfolderpath("Home") & "/test" into theFile
open file theFile for write
write "hello" to file theFile
close file theFile
2.
Code: Select all
put "file:" & specialfolderpath("Home") & "/test" into theFile
put "hello" into line 1 of URL(theFile)