I am writing a method which must open a file, read its contents, close the file, open it later, write to the file, and close it again. The method is failing at the first step and throwing an IOException when trying to execute:
FileInput Stream fileHandler = new FileInputStream("myfile.fil");
I am somewhat baffled as to why this is occurring. The file is in the proper directory, it is not in use, and the other handlers to it are closed before this call is made to it. Any ideas as to what is going on? Thanks!