Hi,

I've got a little program that will read back the contents of a dat file, however the only way I can make it work is to hardcode in the filename.

Any suggestions what to change to make it prompt for one?

Code:
ObjectInputStream inputStream = new ObjectInputStream(new FileInputStream("filename.dat"));
Everything I've tried so far has broken it

Any suggestions would be great, let me know if you need me to post the rest of the code or not as well. I'm thinking it's only that line that has to be changed though.

Thanks