PrintWriter
Data / CompositeDescription
Writes text to a file. Create with createWriter(). Always call close() or flush() when done.
Syntax
PrintWriter* writer = createWriter("output.txt")
Parameters
None
Returns
PrintWriterMethods
| print(T v) | Writes a value without a newline |
| println(T v) | Writes a value followed by a newline |
| println() | Writes a blank line |
| flush() | Flushes the buffer to disk |
| close() | Closes the file |
Related
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...