/
fileTruncate
fileTruncate
Description
Clears the content of the specified file. Creates a new file if the one you want to clear content for doesn’t exist.
Parameters
Return Type
Returns true if the file is truncated.
Example
Example 1
use "file";
truncate("fileToTruncate.txt");;
fileTruncate("fileToTruncate.txt");
See also
Filter by label
There are no items with the selected labels at this time.
Related content
fileSeek
fileSeek
Read with this
fileTruncate
fileTruncate
More like this
copyAttachmentOnJSDComment
copyAttachmentOnJSDComment
Read with this
fileTruncate
fileTruncate
More like this
fileWrite
fileWrite
Read with this
deleteFile
deleteFile
More like this