CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    1

    Having a little trouble

    I have a binary file with multiple records of 84 bytes length each. The first 20 bytes is a c-style string and the rest of the record is 16 integer values (4 bytes each). I need to read all records into an arry. Not quite sure how to do this, or am just very stupid today and overlooking the obvious. Thanks.

  2. #2
    Join Date
    Jun 2002
    Posts
    224

    Re: Having a little trouble

    Hello,

    Smells like homework. Start by defining a structure to hold the record you described.
    ZDF

    What is good is twice as good if it's simple.
    "Make it simple" is a complex task.

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

Featured