Skip to content

Commit 5e739e8

Browse files
committed
resolved merge conflict
1 parent 524cb8f commit 5e739e8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/io/files.js

+13
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,19 @@ p5.PrintWriter = function(filename, extension) {
11941194
this.content += data + '\n';
11951195
};
11961196
/**
1197+
* Clears the data already written to the PrintWriter object
1198+
* @method flush
1199+
* @example
1200+
* <div class ="norender"><code>
1201+
* // create writer object
1202+
* var writer = createWriter('newFile.txt');
1203+
* writer.write(['Flush me']);
1204+
* // flush writer object here
1205+
* writer.flush();
1206+
* // close writer
1207+
* writer.close();
1208+
* </code></div>
1209+
*
11971210
*/
11981211
this.flush = function() {
11991212
this.content = '';

0 commit comments

Comments
 (0)