Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

File I/O

 [1/4] from: ammoncooke::yahoo::com at: 28-May-2001 16:10


Hi, 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

 [2/4] 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

 [3/4] from: ammoncooke:y:ahoo at: 28-May-2001 17:02


Thanks!! Ammon

 [4/4] from: gjones05:mail:orion at: 28-May-2001 18:15


> Thanks!! > Ammon
You are welcome. --Scott Jones