Core Function FileLoad
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> FileSave( <file> ) </pre> === Description === Load all text from a file. === Parameters === ==== file ==== File name. === Return Value === Success: Returns the tex...")
Newer edit →
(Created page with "<pre> FileSave( <file> ) </pre> === Description === Load all text from a file. === Parameters === ==== file ==== File name. === Return Value === Success: Returns the tex...")
Newer edit →
Revision as of 11:18, 9 November 2011
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 0 if error occurs.
Remarks
You cannot use a FileHandle with this.
Example
$TextSave = "Hello World!" FileSave("Hello.txt", $TextSave) $Text = FileLoad("Hello.txt") println( "File text: " . $Text )