public class ReadSql {
public static void readsql(String filePath) throws Exception{
String encoding =
File file = new File(filePath);
if(file
InputStreamReader reader = new InputStreamReader(new FileInputStream(file)
BufferedReader bufferedReader = new BufferedReader(reader);
String line = null;
while ((line = bufferedReader
System
}
reader
}
}
public static void main(String[] args) throws Exception {
System
ReadSql
System
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26986.html