The code is derived from here:
https://www.processing.org/reference/selectInput_.html
As you can see, there is a way to call selectInput
as
selectInput(prompt, callback, file)
That’s what I did in my sketch: tell selectInput in which folder to start
You can also specify *.txt and so on
see also
https://docs.oracle.com/javase/7/docs/api/java/io/File.html
dataPath
dataPath("") and sketchPath("") return the 2 paths
New version