Subroutine Name

StringToFile

Explanation and Usage

This subroutine will write out a string to the specified file.

Syntax

StringToFile(String, FileName)

Options

String - This is the string you wish to write out to your file.

FileName - This is the file name that you wish to write the string to.

Examples

These are actual examples from the Aneuch source code:

StringToFile(join("\n",@files)."\n","$DataDir/pageindex");
Prior to this line being called, @files was populated via the ListAllPages API. The sub then writes out that list of files to the file $DataDir/pageindex.

← Return to API listing