mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
add save() methods and implement write() consistently in the List and Dict classes
This commit is contained in:
@@ -571,8 +571,17 @@ public class StringDict {
|
||||
|
||||
|
||||
/**
|
||||
* Write tab-delimited entries out to
|
||||
* @param writer
|
||||
* Save tab-delimited entries to a file (TSV format, UTF-8 encoding)
|
||||
*/
|
||||
public void save(File file) {
|
||||
PrintWriter writer = PApplet.createWriter(file);
|
||||
write(writer);
|
||||
writer.close();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Write tab-delimited entries to a PrintWriter
|
||||
*/
|
||||
public void write(PrintWriter writer) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
|
||||
Reference in New Issue
Block a user