I have trouble using BufferedInputStream. I'm trying to read the int I just have written to the file. Is the code OK? I get the error text: IOException in DataFiles: java.io.EOFException java.io.EOFException at java.io.DataInputStream.readInt(DataInputStream.java:343) at FileBuff.main(FileBuff.java:27) Something wrong with the file (just a text file) or with the readInt()?
Melynda Coxx
Greenhorn
Joined: Jan 30, 2002
Posts: 7
posted
0
Reverse the order of your 3 close calls. They are backwards... i.e. change
to
It worked for me. Mel [ January 31, 2002: Message edited by: Melynda Coxx ]