Processing Forum
String[] listFileNames() {
File file = new File(path);
if (file.isDirectory()) {
String names[] = file.list();
for (int i=0; i<names.length; i++) {
if (names[i].toLowerCase().endsWith(".csv")) {
println(names[i]);
}
}
return names;
}
else {
return null;
}
}
int fade = 0;
void setup(){
size (400,400);
}
void draw(){
fade++;
fade = constrain(fade, 0, 255);
println (fade);
}