$io.rewrite

Overwrites the specified file with the given contents.
Syntax
    $io{rewrite}{file_name}{bytes_per_character}{contents}{offset}
    $io.rewrite{file_name}{bytes_per_character}{contents}{offset}
DocumentationOverwrites the specified file with the given contents.

    Parameters:

      file_name, the name of the file to be writen (see the note about the filename syntax at the end of this document).
      bytes_per_character, the amount of bytes per character. Valid values are 1 for ASCII characters or 2 for unicode characters. The value of this parameter defaults to 1.
      file_contents, the contents to be writen to the specified file.
      offset, the position in the specified file to start writting at. This parameter is only expected by the 'write' method.
Examples
GroupSpecial
Minimum required transaction-mode:UPDATE=IO
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters3
Maximum parameters 3