Results 1 to 2 of 2
- 08-31-2008, 10:03 AM #1Member
- Join Date
- Aug 2008
- Rep Power
writing/reading a Structure to/from a file
I need to store an object of File class into a file for further use.
I need something like reading and writing of structures into a binary file in C/C++.
Could you please help me and tell me how to do this?
I need to do this because my program has a text input file and every time it starts ,it should check whether it is exactly the previous file it read from and if so reading remaining of the file, but if not it should start from the beginning of the file. I decided to use File.equal() method but I don't know how to store the File object .
Do you think my method would meet my need? If not, what's the solution?
- 08-31-2008, 03:21 PM #2
- By ranoosh in forum Advanced JavaReplies: 4Last Post: 09-28-2008, 05:34 AM
- By Java Tip in forum Java TipReplies: 0Last Post: 01-16-2008, 11:41 AM
- By Java Tip in forum Java TipReplies: 0Last Post: 12-15-2007, 09:20 PM
- By baltimore in forum New To JavaReplies: 1Last Post: 07-31-2007, 07:47 PM