System.IO.fileWrite()
Signature
void fileWrite (String fileName, String str, boolean append, boolean flush)
Description
Write the data in str
to the specified file.
The file is opened automatically if it has not yet been opened.
Parameters
Name | Type | Description |
fileName | String | The name of the file to write to. |
str | String | Data to be written. |
append | boolean | Is this write to be treated as an append to an existing file? |
flush | boolean | Should the data be flushed to the file immediately? |
Example
System.IO.fileWrite ("c:/tmp/test.out", "This is a test write", false, true);
Result is: "This is a test write" appears in the file "c:/tmp/test.out".