Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Save textArea with ControlP5

$
0
0

Hello guys,

How could I save the contents of a textArea in a text file?

It worked to open normal as the example in the link below, but still managed to save not ... tried this code, but it gives error, the syntax is wrong ...

https://forum.processing.org/one/topic/textarea-using-controlp5.html

stretch code:

//String[] lines = loadStrings(textArea.getText());
//printArray(lines);

String lines = textArea.getText()
println(lines);

for (int i = 0; i <= lines.length-1; i++){
   lineSave[i] = lines[i];
}

saveStrings(split(lineSave, "\n"));

Thanks in advance for your attention.


Viewing all articles
Browse latest Browse all 2896

Trending Articles