saveTextFile
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
Function Server and Client 
 
 
 ![]()
Online and Offline
Available since Server 1.2.2, Client 1.2.2
null saveTextFile(string filePath, string text)
The saveTextFile function is used to write a string of text to a file, truncating the file first.
Parameters
| 1) | string | filePath | The path to the file. | 
| 2) | string | text | The text to set the content of the file to. | 
Return
| null | This function doesn't return a value. | 
Notes
There aren't any notes for this function.
Examples
There aren't any examples for this function.
Compatibility
There isn't any compatibility information for this function.
Related
Server Related
 
 
 
 createFile
 
 
 
 fileExists
 
 
 
 loadTextFile
 
 
 
 openFile
 
 
 
 saveTextFile
Client Related
 
 
 
 createFile
 
 
 
 fileExists
 
 
 
 loadTextFile
 
 
 
 openFile
 
 
 
 saveTextFile