Do I need to close() both FileReader and BufferedReader?
I’m reading a local file using a BufferedReader wrapped around a FileReader: BufferedReader reader = new BufferedReader(new FileReader(fileName)); // read the file // … Read more
I’m reading a local file using a BufferedReader wrapped around a FileReader: BufferedReader reader = new BufferedReader(new FileReader(fileName)); // read the file // … Read more
The problem is most likely that your application is using a relative pathname. As @BalusC says, relative pathnames can be problematic. But IMO, … Read more