11-11-2011, 05:27 AM
|
team canada
|
|
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
Quote:
Originally Posted by fowlplay4
Here's some basic examples for the savestring and savelines functions.
PHP Code:
// Declare Filename
temp.filename = "path/to/file.txt";
// Save Lines
temp.lines = {
"Line 0: Hello",
"Line 1: World!"
"Line 2: How are you?"
};
temp.lines.savelines(temp.filename, 0);
// Save String
temp.str = "Hello World!\n";
temp.str.savestring(temp.filename, 0);
// Append String to File
temp.str = "Yeah!\n";
temp.str.savestring(temp.filename, 1);
// Append Lines to File
temp.lines.savelines(temp.filename, 1);
|
Examples. |
|
|