We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
When I'm loading a list of string from a file and that file does not yet exit, I want my script to create the file how would I go about this. I know that if you load a file that doesn't exit it will return a null value but how would I detect if it returned a null?
Answers
It depends of what you use. Some links below. If you use loadString for example, you can check if the return value is null:
https://processing.org/reference/createInput_.html
https://forum.processing.org/two/discussion/14595/simple-file-operations/p1
http://stackoverflow.com/questions/18955163/how-to-append-results-in-processing
http://arduinobasics.blogspot.ca/2011/06/how-to-append-text-to-txt-file-using.html
Kf