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. How to store objects(Object properites) in a file with c++ native codes?

How to store objects(Object properites) in a file with c++ native codes?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
3 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.
  • S Offline
    S Offline
    shaktikanta
    wrote on last edited by
    #1

    I have n no of objects of a class. So what I want to do is - I want to save those data to a file when my application exit. So how it is possible to write multiple objects of same class to a file and read that file to make objects of the same class. Thanks in advance. :omg: :doh:

    M 1 Reply Last reply
    0
    • S shaktikanta

      I have n no of objects of a class. So what I want to do is - I want to save those data to a file when my application exit. So how it is possible to write multiple objects of same class to a file and read that file to make objects of the same class. Thanks in advance. :omg: :doh:

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      Google "C++ Serialization" There are many ways to do this; but it seems using the Boost serialization library is widely recommended.

      I'd rather be phishing!

      C 1 Reply Last reply
      0
      • M Maximilien

        Google "C++ Serialization" There are many ways to do this; but it seems using the Boost serialization library is widely recommended.

        I'd rather be phishing!

        C Offline
        C Offline
        Cristian Amarie
        wrote on last edited by
        #3

        Or VARIANT, if it's Win32.

        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