Problem loading in a .txt file
Could someone please tell me why this code doesn't load in the .txt file. I know that I have the .txt file in the same folder as the code.
import java.io.*;
public class Grid implements GridInterface {
public void load(String sourceName) {
try {
BufferedReader br = new BufferedReader(new FileReader(sourceName));
} catch (FileNotFoundException e) {
System.out.println("File not found");
}
}
MAIN PROGRAM
public class GroupCheck {
public static Grid grid = new Grid();
public static void main(String[] args) {
String sourceName = "grid1.txt";
grid.load(sourceName);
}