Difference between revisions of "ReadFile"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "Note that ReadFile ends when it reaches a substitute character (Chr(26)). ===From the Scripting Manual=== ''function ReadFile(FileName: string): string;'' '''Parameter In...")
 
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
  
  
==External Links==
+
==See also==
* [http://enesce.com/help/index.html?Functions/ReadFile.html Scripting Manual page for ReadFile]
+
* [[WriteLn]]
 +
* [[WriteFile]]
 +
* [[ReadINI]]
  
 
[[Category:Server Scripting]][[Category:Server Scripting Functions]]
 
[[Category:Server Scripting]][[Category:Server Scripting Functions]]

Latest revision as of 03:54, 18 March 2013

Note that ReadFile ends when it reaches a substitute character (Chr(26)).

From the Scripting Manual

function ReadFile(FileName: string): string;

Parameter Info:
 FileName (String): File located in your Soldat Server folder.

Description:
 This function will read a text file (FileName) located in your Soldat Server folder and return it in a String value

Examples

WriteLn(ReadFile('mapslist.txt')); //Outputs all current lines in mapslist.txt


See also