saveString(file, string)

Writes a string to a file. If the given file exists it gets overridden.

Type: function

Parameter(s):

  • file {String | File}:

    The file name or a File instance.

  • string {String}:

    The string to be written.

Returns:

  • {File}:

    The file the string was written to.