public void pintMsg() throws Exception{ String strLine=null; File fileIn = new File("E:/oracle_exp_files/upload/aaa.txt"); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(fileIn))); while ( (strLine = bufferedReader.readLine()) != null ) { System.out.println(strLine); } }