Skip to end of banner
Go to start of banner

printInFile

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Description

Prints the provided value in the specified file. It appends the value to the file. For best results, use absolute paths, because relative paths are resolved starting with the current working directory.

Parameters

Return Type

None

The returned value has no meaning.

Example

printInFile("C:/story.txt", "Once upon a time...");

Prints the record Once upon a time... to the story.txt file.

It is recommended that you use forward slashes ( / ) for file paths. As a general observation use the silEnv() routine to create an absolute path.

Example 2

printInFile("C:/story.txt", "Once upon a time...", "utf-8");

Example 3

printInFile("C:/story.txt", "Once upon a time...", "utf-8", false);

See also

  • No labels