Subj : File API example? To : art From : Digital Man Date : Tue Feb 08 2011 02:29 pm Re: File API example? By: art to All on Tue Feb 08 2011 07:06 am > Hey guys, can anyone provide some help on using the file IO API? > > Specifically, reading lines from a text file, and writing lines to a file? > A quick example would be quite handy. I've followed the documentation in > the API which doesn't seem to have too much to initialize but haven't been > able to do much with it. Use file.readln() to read a line, file.writeln() to write a line. There are lots of example uses of the File class in exec/*.js. Perhaps if you gave us an example of what you have tried, we can assist. digital man Snapple "Real Fact" #72: The average person uses 150 gallons of water per day for personal use. .