I would like to search in a directory if wav files are present.
How can I do Java?
Thank you.
If you use it:
file directory = new File ("/ yours / dir"); File [] files = dir.listFiles (new filename filter) (accept public boolean (file diary, string name) {return name.toLowerCase (). EndsWith (".wav");}}); Then there will be an array of files in files , which ends with .wav . If you just want to know if there are any, check that the files.length & gt; 0 .
Comments
Post a Comment