We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone,
I am trying to save a single string in a .txt file, but the save(); function seems to work only inside the setup(); function.
Here is an exemple that doesn't work:
var data;
function setup() {
Canvas = createCanvas(300, 300);
data = "I am a string";
}
function saveMe() {
save(data, 'myText.txt');
}
function mouseClicked() {
saveMe();
}
function draw() {
background(255);
}
Any idea?? Thanks!
Answers
https://forum.Processing.org/two/discussion/13376/savecanvas-is-being-called-over-and-over-crashes-fiefox
Thanks a lot. Tried it but it creates a .txt file without dialog, that contains only this: ∫w^~)fi