How to write a c++ program that processes the integer values stored in a binary file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohammed alhadi
    New Member
    • May 2011
    • 8

    How to write a c++ program that processes the integer values stored in a binary file?

    Hi All,

    I don't want to use the struct structure to access or represent the elements, I just want to save integer values to a binary file (now I have the data stored on a text file and the first line in it represent the dimensions of the matrix) and then access them and store them in a 1D array.

    for which the integer values are representable in reality by a 2D matrix but i will store them on a binary file, and I am going to copy them from the binary file and store them in a 1D array to access them as if they were 2D.

    sorry I don't have code now ... but I am confused how to start!

    Regards
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    have a look at the section on Binray IO in


    also

    Comment

    • mohammed alhadi
      New Member
      • May 2011
      • 8

      #3
      Thank you horace1 very much for the links :)

      Comment

      Working...