createWriter()

Output / Files

Description

Creates a PrintWriter object for writing text to a file.

Syntax

PrintWriter* createWriter(std::string path)

Parameters

NameTypeDescription
pathstd::stringpath to the file

Returns

PrintWriter*

Related

Under the Hood

From Processing.h:

static PrintWriter* createWriter(const std::string& path);

Under the Hood

From Processing.cpp:

PrintWriter* PApplet::createWriter(const std::string& path){ return new PrintWriter(path); }