Is it possible to open a file with processing sketch? (command line)

You can use selectInput() to open a platform-specific file chooser dialog to select a file for input. After the selection is made, the selected File will be passed to the ‘callback’ function

a crude text editor might be achieved by loading the file’s strings with loadStrings() and then it’s up to you to write the associated text editor

You could also use a BufferedReader to read line by line the file

1 Like