Results 1 to 2 of 2

Thread: Binary file i/o

  1. #1

    Thread Starter
    Lively Member dubae524's Avatar
    Join Date
    Jun 2001
    Location
    Currently on this Super Star Destroyer being telekinetically strangled to death by Darth Vader
    Posts
    78

    Binary file i/o

    Hey everyone, again. I now have another problem, I've been searching through the threads on a way to open up a binary file and to read from and to save to a specific offset, and that offset only. However, I have searched through all these and seen many confusing discussions on how you're supposed to use C++'s method (fstream) or C's method (stdio). Is it possible that someone can give me some sort of explanation on this? Remember: I want to work with binary, and not ASCII, files.

    Tnx
    - Justin Patrick Butler

    Comme je trouve. "As I find."
    - Butler family quote

    Beneficia sumptos procul superant. "The benefits far exceed the costs."
    - Myself

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    To seek around a binary file, you can use the fseek function.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width