out.writeInt( 0 ); out.writeDouble( 12.45 ); A good answer might be:
An |
The Byte Counter
A
The output from this program is: C:\Programs>java ByteCounter 4 bytes have been written. 12 bytes have been written. C:\Programs> The method returns the total count of bytes written, not the number just written. |
QUESTION 12:Can several different data types be written to the same file? Click Here after you have answered the question |