package com.company; import java.io.*; import java.util.Scanner; public class Alalyzer_of_text { public static void main(String[] args) throws FileNotFoundException{ String separator = File.separator; String path = "D:" + separator + "lala.txt"; File file = new File(path); Scanner scanner = new Scanner(file); int a = scanner.nextInt(); while(scanner.hasNextLine()) { System.out.println((scanner.nextLine())); } } }