参考 p5.PrintWriter

p5.PrintWriter

A class to describe a print stream.

Each p5.PrintWriter object provides a way to save a sequence of text data, called the print stream, to the user's computer. It's a low-level object that enables precise control of text output. Functions such as saveStrings() and saveJSON() are easier to use for simple file saving.

Note: createWriter() is the recommended way to make an instance of this class.

Notice any errors or typos? Please let us know. Please feel free to edit src/io/files.js and open a pull request!

相关参考