Subj : Writing to a text file
To : Lab Rat
From : Deuce
Date : Fri Feb 07 2014 11:39 am
Re: Writing to a text file
By: Lab Rat to All on Thu Feb 06 2014 11:55 pm
> var f = new File('test.txt');
> file.open('w');
> file.writeln('Line 1');
> file.writeln('Line 2');
> file.close();
>
> I've tried the file.open(file_exists(file.name) ? 'r+':'w+'); line
> mentioned in the documentation and I just cannot get this to work.
Since you're not specifying a path, I think it goes in the ctrl directory.
---
http://DuckDuckGo.com/ a better search engine that respects your privacy.
� Synchronet � My Brand-New BBS (All the cool SysOps run STOCK!)