Difference between revisions of "WriteLnFile"

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

Latest revision as of 10:48, 17 March 2013

From the Scripting Manual

function WriteLnFile(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 single LINE to (FileName) in your Soldat Server directory

Examples

begin
    WriteLnFile('scriptlog.txt','I am a line! Hear me roar!');
     //I am a line! Hear me roar! will now be written to scriptlog.txt
end;


See also