Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) throws IOException
- {
- System.out.println("Main starts");
- //String filename = "input.txt";
- // TODO code application logic here
- System.out.println("Reading start.");
- File file = new File("input.txt");
- Scanner in = new Scanner(file);
- //BufferedReader in2 = new BufferedReader(new FileReader("C:\\input.txt"));
- String text = in.nextLine();
- System.out.println(text);
- in.close();
- //System.out.println(in);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement