2012-04-13 15 views

答えて

0

リストがほしいですか?

File directory = getMyDirectory(); // do this however you want 
File[] files = directory.listFiles(); // gets an array of files in the dir. 
0
public void directoryPath(File path) { 
     // TODO Auto-generated method stub 
     if(path.exists()) { 
      File[] files = path.listFiles(); 
      for(int i=0; i<files.length; i++) { 
       //you can do what you want here 
      } 
     } 
    } 

上記のコードファイルマネージャを作成する方法を、Googleで検索したフォルダ内のすべてのファイル...

関連する問題