class="java"> BufferedReader fileReader = new BufferedReader(new FileReader(srcFilePath)); String line; while ((line = fileReader.readLine()) != null) { //do something }
BufferedReader fileReader = new BufferedReader(new InputStreamReader(new FileInputStream(srcFilePath), "UTF-8"));