WriteFile

From Soldat Community Wiki
Revision as of 12:14, 15 August 2012 by Freeman (talk | contribs) (Created page with "===From the Scripting Manual=== ''function WriteFile(FileName, Data: string): boolean;'' '''Parameter Info:''' FileName (String): File located in your Soldat Server fold...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the Scripting Manual

function WriteFile(FileName, Data: string): boolean;

Parameter Info:
 FileName (String): File located in your Soldat Server folder.
 Data (String): Text to be written to FileName.

Description:
 This function will write a file (FileName) located in your Soldat Server folder and return TRUE if   successful, and FALSE if an error occured.

Examples

begin
    WriteFile('test.txt','Hello World!');
    WriteLn(ReadFile('test.txt')); //Outputs "Hello World!"
end;


External Links