Core Function FileSave
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> FileSave( <file>, <expression> ) </pre> === Description === Save all text to a file === Parameters === ==== file ==== File name. ==== expression ==== Text to save...") |
|||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
− | Save all text to a file | + | Save all text to a file. |
=== Parameters === | === Parameters === |
Revision as of 11:17, 9 November 2011
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 1
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 )