Question
Save Text into a File
Hello,
I created a little script which extracts metadata from a selection and stores it in a string. Now I just would like to save the string in a text-file in the current foldert, but ...
any hint would be very kind.
// test string
myText = "save this";
// create new File
myFile = new File("test.txt");
// write into the file
myFile.write(myText);
and close it
myFile.close(myText);
thanks pepe
I created a little script which extracts metadata from a selection and stores it in a string. Now I just would like to save the string in a text-file in the current foldert, but ...
any hint would be very kind.
// test string
myText = "save this";
// create new File
myFile = new File("test.txt");
// write into the file
myFile.write(myText);
and close it
myFile.close(myText);
thanks pepe
