saveTextFile: Difference between revisions

303 bytes removed ,  18 January 2022
no edit summary
No edit summary
No edit summary
 
(One intermediate revision 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 = set all text inside a file to.<br>The text may contain new-line character(s).<br>The text stored is either up to text's string length or first null-byte (\0) character, whichever occurs first.<br>This function internally opens, writes, and closes the file.<br>The file is internally opened in text-mode, not binary-mode.<br>The file is internally opened in write-mode, not read-mode.
|usage = write a string of text to a file, truncating the file first
|returnFail1 = null n/a
|returnFail1 = null n/a
}}
}}
2,591

edits