24 lines · 432 B · Text
RawDownload
// filename"write2.txt" => string filename;// instantiate a file IO objectFileIO fout;// open for write (default mode: ASCII)fout.open( filename, FileIO.WRITE ); // testif( !fout.good() ){    cherr <= "can't open file for writing..." <= IO.newline();    me.exit();} // write some stufffout.write( 1 );fout.write( 2 );fout.write( "boo" ); // close the thingfout.close(); // print<<< "file written:", filename >>>;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t