fileTruncate
     
    
Syntax  | truncate(path_to_file)  | Package  | file  | 
Alias  | 
  | Pkg Usage  | truncate(path_to_file)  | 
Description
Clears the content of the specified file.
Parameters
Parameter name  | Type  | Required  | Description  | 
|---|---|---|---|
path_to_file  | String  | Yes  | Name of the file you want to truncate.  | 
Return Type
Boolean
Returns true if the file is truncated.
Example
Example 1
use "file";
truncate("fileToTruncate.txt");See also
Peacock
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.
