I'm using the "writeChar", "writeInt", etc methods, but they're making the file look really funky, like this:
__john_t__smith_ 454545454__history@_______
I have no idea what that is or why it's doing that. It looks ever weirder in the file itself, and I couldn't even copy paste it directly to here.
This is my code:
public void writeToFile(RandomAccessFile raf) { // write info to the file raf.writeUTF(fname); raf.writeChar(middleI); raf.writeUTF(lname); raf.writeUTF(ID); raf.writeUTF(major); raf.writeDouble(GPA); // close the file raf.close(); }