:
public class FileExample public static void main(String[] args) File file = new File("example.txt"); try Scanner scanner = new Scanner(file); while (scanner.hasNextLine()) System.out.println(scanner.nextLine()); javtifulcomn 2021