Core Function FileSave

From Sputnik Wiki
Revision as of 11:52, 29 August 2013 by UberFoX (Talk | contribs)
Jump to: navigation, search
FileSave( <file>, <expression> ) 

Contents

Description

Save all text to a file.

Parameters

file

File name.

expression

Text to save to the file.

Return Value

Success: Returns true.

Failure: Returns false 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 );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox