Opening files through applet
in
Integration and Hardware
•
1 year ago
Hey,
I created a program to play .mp3 files from the data folder. It works fine as a .pde, but once i export it as an applet any files added to the data folder no longer show up int the file list on the display. likewise any files removed from the data folder stay in the list displayed when the applet is run, and still play.
here is the code I used to open the files
String[] filenames = folder.list();
int next = 0;
for (int i = listStart; i < filenames.length; i++) {
text(filenames[i],width/2-499, 234+next*20);
next++;
}
all help is appreciated :-)
I created a program to play .mp3 files from the data folder. It works fine as a .pde, but once i export it as an applet any files added to the data folder no longer show up int the file list on the display. likewise any files removed from the data folder stay in the list displayed when the applet is run, and still play.
here is the code I used to open the files
String[] filenames = folder.list();
int next = 0;
for (int i = listStart; i < filenames.length; i++) {
text(filenames[i],width/2-499, 234+next*20);
next++;
}
all help is appreciated :-)
1