Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Save array

Save array

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structures
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    christinalimsw
    wrote on last edited by
    #1

    How can i save an array with its element and get it back after i shutdown and on the PC again? My program is written in array of pointer. Thanks

    D H 2 Replies Last reply
    0
    • C christinalimsw

      How can i save an array with its element and get it back after i shutdown and on the PC again? My program is written in array of pointer. Thanks

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      christinalimsw wrote:

      How can i save an array with its element and get it back after i shutdown and on the PC again?

      Write the contents of the array to a file.


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "We will be known forever by the tracks we leave." - Native American Proverb

      C 1 Reply Last reply
      0
      • C christinalimsw

        How can i save an array with its element and get it back after i shutdown and on the PC again? My program is written in array of pointer. Thanks

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        I suggest CArchive() and CFile to write in file

        1 Reply Last reply
        0
        • D David Crow

          christinalimsw wrote:

          How can i save an array with its element and get it back after i shutdown and on the PC again?

          Write the contents of the array to a file.


          "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

          "We will be known forever by the tracks we leave." - Native American Proverb

          C Offline
          C Offline
          christinalimsw
          wrote on last edited by
          #4

          That means it is possible to retrive them again, rite? thank you. Hav a nice day.

          D 1 Reply Last reply
          0
          • C christinalimsw

            That means it is possible to retrive them again, rite? thank you. Hav a nice day.

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Certainly.


            "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

            "We will be known forever by the tracks we leave." - Native American Proverb

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups