Conversion from string to File
in
Programming Questions
•
3 months ago
Hi guys,
I am trying to make my processing file load a data file on startup. I am using the selectFolder() command and this is working:
selectFolder("Select folder containing constant input spreadsheets e.g. deadloads.csv", "folderSelected");
However, when I try to choose the initial folder to be the same as the sketch folder, I am having trouble.
File programFolder = file(sketchPath(""));
selectFolder("Select folder containing constant input spreadsheets e.g. deadloads.csv", "folderSelected", programFolder);
How do I convert a string to a File data type?
Thanks in advance
1