Filename filtering
in
Programming Questions
•
3 years ago
I would like my sketch to parse some text files in a subfolder to the sketches data folder, or perhaps in arbitrary folder. However, on a mac, the OS always creates a file called ".DS_Store". I would like my sketch to only read files that have a .txt extension. In general i would like to know how to code sketches that can use arbitrary file filters. Unfortunately the JavaDoc regarding the FileFilter interface is a bit over my head, and the processing.org documentation on file i/o is sparse. Any help or code snippets would be greatly appreciated!
1