package lab01; import java.util.*; import java.math.*; import java.io.*; public class first { public static void main(String[] args) { String fileName = "E:/eclipse/mywork/in.txt"; try { File file = new File(fileName); Scanner workreader = new Scanner(file); while (workreader.hasNext()) { String nn = workreader.nextLine(); System.out.println(nn); } // FileReader fr = new FileReader(fileName); // BufferedReader br = new BufferedReader(fr); // String line = br.readLine(); // while (line != null) { // System.out.println(line); // line = br.readLine(); // } } catch (Exception io) { io.printStackTrace(); } } }