You are viewing Revision 1 of APIs_StringToFile

This page is registered as a special page, however you are viewing a previous revision of the page. As such, the special page function will not be triggered.

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 [ListAllFiles API?]. The sub then writes out that list of files to the file $DataDir/pageindex.