System.IO.fileWrite()

Signature

void fileWrite (String fileName, String str, boolean append, boolean flush)

Domain

action

Description

Write the data in str to the specified file. The file is opened automatically if it has not yet been opened.

Parameters

NameTypeDescription
fileNameStringThe name of the file to write to.
strStringData to be written.
appendbooleanIs this write to be treated as an append to an existing file?
flushbooleanShould the data be flushed to the file immediately?

Returns

None.

Cautions

none

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".