文件读写

File file = new File("SongList.txt");
BufferedReader reader = new BufferedReader(new FileReader(file));
String line = null;
while((line = reader.readLine()) != null){
    addSong(line);
}
View Code

 

posted @ 2015-11-09 19:28  Gabyler  阅读(138)  评论(0编辑  收藏  举报