Navigation
Synopsis Append a value to a file.
Function void appendToFileEnc(loc file, str charset, value V...) throws PathNotFound(loc file), IO(str msg)
Usage import IO;
Description Append a textual representation of some values to an existing or a newly created file:
  • If a value is a simple string, the quotes are removed and the contents are de-escaped.
  • If a value has a non-terminal type, the parse tree is unparsed to produce a value.
  • All other values are printed as-is.
  • Each value is terminated by a newline character.

    Files are encoded using the charset provided.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.