第1个回答 推荐于2017-09-13
File f = new File("tmp.txt");
FileInputStream fis = new FileInputStream(f);
Reader bis = new InputStreamReader(fis);
String line = null;
while ((line = reader.readLine()) != null) {
if(line.startsWith("#")){
continue;
}
if (line.contains("abc dd")) {
//do somthing...
}
}本回答被提问者和网友采纳