Difference between revisions of "WriteFile"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "===From the Scripting Manual=== ''function WriteFile(FileName, Data: string): boolean;'' '''Parameter Info:''' FileName (String): File located in your Soldat Server fold...")
 
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
  
  
==External Links==
+
==See also==
* [http://enesce.com/help/index.html?Functions/WriteFile.html Scripting Manual page for WriteFile]
+
* [[ReadFile]]
 +
* [[WriteLnFile]]
  
 
[[Category:Server Scripting]][[Category:Server Scripting Functions]]
 
[[Category:Server Scripting]][[Category:Server Scripting Functions]]

Latest revision as of 09:48, 17 March 2013

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;


See also