Thank you very much
It works but the problem is the employee number it start from "0", I would like to start employee number starting with 1.
----jGRASP: operation complete.
Enter a file name:
test.dat
test.dat is a valid file.
The file is 50 byte long
It was last modified on 1248851551486 in Java Standard Time.
The file can be read.
The file can be written to.
The Employee's Number is: 0
The Employee's Name is: James Smith
The Employee's Department is: Sales
The Employee has 15 Vacation Days Available
The Employee's Number is: 1
The Employee's Name is: John Darme
The Employee's Department is: Security
The Employee has 20 Vacation Days Available
java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
at java.io.DataInputStream.readUTF(DataInputStream.java:572)
at java.io.DataInputStream.readUTF(DataInputStream.java:547)
at Project5Read.main(Project5Read.java:42)
The total number of Employees is: 2
----jGRASP: operation complete.