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.