Results 1 to 2 of 2
- 08-31-2008, 09:03 AM #1
Member
- Join Date
- Aug 2008
- Posts
- 8
- Rep Power
- 0
writing/reading a Structure to/from a file
Hi all,
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?
Thanks
- 08-31-2008, 02:21 PM #2
Similar Threads
-
Reading/Writing files through Applet
By Java Tip in forum Java TipReplies: 1Last Post: 03-09-2009, 11:45 AM -
writing and reading unicode characters from a file
By ranoosh in forum Advanced JavaReplies: 4Last Post: 09-28-2008, 04:34 AM -
Reading/Writing a File using byte array
By Java Tip in forum Java TipReplies: 0Last Post: 01-16-2008, 10:41 AM -
Help with File reading and writing
By baltimore in forum New To JavaReplies: 1Last Post: 07-31-2007, 06:47 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks