[REBOL] Re: File I/O
From: gjones05:mail:orion at: 28-May-2001 17:42
From: "Ammon Cooke"
> Has anyone got a tutorial I can look at? I just need to get data
from a file in the format:
> "data"
> "more data"
> "more data"
> "yet more data"
>
> that is what the text file looks like, now how do I get each line into
a text-list, how do I then get it from the text-list to a file?
> Thanks
> Ammon
lo: layout [
tl1: text-list
txt "Save list with a click below"
button "Select" [foreach datum tl1/data [write/append/lines
%info2.txt datum]]
]
file: read/lines %info1.txt
foreach line file [append tl1/data line]
show t1
view lo