binary file writing and reading

OOOOOOOOooohhh!

It worked! THANKYOU!

so what was the difference? It looks all the same for me.

The java compiler wants you to catch specific exceptions. If you ignore to do so, the compiler simply won’t compile your code, regardless of the fact that the exception would not occur at runtime. See http://en.wikipedia.org/wiki/Checked_exceptions

And maybe it may be a good idea to spend some time at http://java.sun.com/docs/books/tutorial/ after all…

Im slowly working stuff out, you never have to use exceptions in c thats all, in java they force you to and Ive never done it before!

That’s why I told you to read through The Java Tutorial in another thread. Every problem you have been having so far is answered in there. If you take some time now to read through it you will save yourself a lot of time and headaches. If you don’t you will just keep coming back here with more questions. While Java and C are very similar, there are also a lot of differences.

+1 Java tutorial.