Core Function FileLoad

From Sputnik Wiki
Revision as of 12:38, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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 );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox