print ( var ) println ( var ) |
File |
Arguments | var - a variable (numerical or string) to write to the output file. |
Description | This method writes the given
arguments to the associated text File. The first variant writes the variable
to the file, while the second variant additionally appends a newline to the
output, forcing a line break. The File object must have been created first by a call to the CreateOutputFile() method. |
Remarks | var of =
FileSystem.CreateOutputFile("c:/tmp/test.txt"); of.println("--- Created by JavaFoil ---"); of.print(12); // an integer number of.print("\t"); // a TAB character, to easy import into Excel. of.println(33.56); // a floating point number FileSystem.CloseFile( of ); |