saveTextFile: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptItem |endpoint = shared |type = function |name = saveTextFile |parameters = string filePath, string text |parameter1 = string filePath The path to the file. |parameter...") |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|since = 1.2.2 1.2.2 | |||
|endpoint = shared | |endpoint = shared | ||
|type = function | |type = function | ||
Line 7: | Line 8: | ||
|parameter2 = string text The text to set the content of the file to. | |parameter2 = string text The text to set the content of the file to. | ||
|returnTypes = null n/a | |returnTypes = null n/a | ||
|usage = | |usage = write a string of text to a file, truncating the file first | ||
|returnFail1 = null n/a | |returnFail1 = null n/a | ||
}} | }} |
Latest revision as of 03:59, 18 January 2022
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