I am making a program that opens and reads a file. This is my code:
import java.io.*; public class FileRead{ public static void main(String[] args){
Try to list all files' names in the directory by calling:
File file = new File("."); for(String fileNames : file.list()) System.out.println(fileNames);
and see if you will find your files in the list.