open to write 1, "mytextfile.txt"
write string 1, "this is text"
write string 1, "this is another line of text"
write string 1, "huh, another line"
close file 1
This will output the following to your text file:
this is text
this is another line of text
huh, another line
You can insert line breaks with the following code:
open to write 1, "mytextfile.txt"
write string 1, "this is text" + chr$(13) + chr$(10) + "this is another line of text" + chr$(13) + chr$(10) + "huh, another line"
close file 1
This will output the following to your text file:
this is text
this is another line of text
huh, another line
For a reference of all ASCII characters, you can refer to the ASCII table here:
http://www.asciitable.com/index/asciifull.gif
You can see in the image that
10 and
13 are used to create new lines on Windows. Unix operating systems only need a new line feed without the carriage return (probably not so relevant).
TheComet

Yesterday is History, Tomorrow is a Mystery, but Today is a Gift. That is why it is called "present".