file_overwrite()

 
Replaces the file in path if it exists. If will not create the file if it does not exist.
Syntax
file_overwrite( path, location, data var )
Returns the length of data written or -1 on error
  • path = fully qualified path to the file
  • location = 'data' or 'script'
  • data = string variable containing the data to write
User Annotations: file_overwrite