This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
My instructions say: All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes. All text values, and all fields (which are text only), contain only 8 bit characters, null terminated if less than the maximum length for the field. The character encoding is 8 bit US ASCII. What does "null terminated if less than the maximum lenght for the field". Does this mean a field that is suppossed to be 64 characters in the file, may be less and if so it has a null indicator on the end? If so this screws up my entire process of reading in the file!!! I read another post regarding this issue but it did not make things clear for me.
Bill null terminated does mean that no matter how long the string actually is, it still takes up the entire space alotted. Meaning if the Name is 64 characters in the data file, then 64 characters are used. This way the record is always "fixed" length. Mark