Create array of records and store in file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Neish
    New Member
    • Mar 2010
    • 1

    Create array of records and store in file

    how do you create and populate an array of records and store those records into a file
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    This is too general a question.

    I suggest you a) learn how to write a variable to a file, then b) read the file into another variable of the same type and c) compare that the two variables are equal in value.

    Next, repeat the above using a struct variable.

    Next, repeat the above writing a series of struct variables to the file and read them back into a different set of struct variables.

    Finally, replace the sets of struct variables with arrays of struct variables.

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      How will this file be used? If it will be transferred to some other different kind of computer ( by file transfer, memory stick, etc) then you are facing a much more complicated problem. I won't go into the details unless you tell us that indeed this file has to be useable by different computers that are not necessarily using the same processor, compiler, or operating system.

      Comment

      Working...