Reading a .txt file using Scanner class in Java March 23, 2023 by Tarik You have to put file extension here File file = new File("10_Random.txt");