This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes I/O and Streams and the fly likes Problem with I/O, writing to a binary file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Problem with I/O, writing to a binary file." Watch "Problem with I/O, writing to a binary file." New topic
Author

Problem with I/O, writing to a binary file.

Aaron Barrick
Greenhorn

Joined: Aug 01, 2012
Posts: 1
Okay, so I need to write information to a binary file, and while I have my window completely set up and laid out like I want it, when I input the information into the boxes and press write record it does nothing. In our example code, the information is written to an example .dat file and is cleared from the text boxes. Mine does nothing.

Also, I wanted to know how to write a String (in this case the employee name) to my binary .dat file...I can't figure it out for the life of me.

Here's the code I have now:




For good measure, here's the example code:




Thanks for any and all help, and I'm sorry for the long post!


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with I/O, writing to a binary file.