Core Function FileLoad
From Sputnik Wiki
(Difference between revisions)
(→Return Value) |
m (1 revision) |
Revision as of 21:40, 11 August 2014
FileSave( <file> )
Contents |
Description
Load all text from a file.
Parameters
file
File name.
Return Value
Success: Returns the text from the file
Failure: Returns empty string
Remarks
You cannot use a FileHandle with this.
Example
$TextSave = "Hello World!"; FileSave("Hello.txt", $TextSave); $Text = FileLoad("Hello.txt"); println( "File text: " . $Text );