Creating a file that does not exist........
Posted on 2000-01-30
OK, here's a humdinger of a question.
I'm creating hashtables that are inputted into files of type .ser. Before putting a new entry into the hastable I read from a file that should contain the hashtable. However, if the file does not exist I want to be able to create the file to a specified name and then insert the hashtable entry. As of present it works if the file exists, otherwise it just bombs out and says FileNotFoundException. So, I reiterate, how can I create a file in my code?