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. Storing Data as ASCII format

Storing Data as ASCII format

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 Posts 4 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
    Shaffiq
    wrote on last edited by
    #1

    Hi All, I Need Help Regarding The Storing of Data in ASCII format How To store TEXT Data in ASCII Format and In which Format Ascii Data to be Stored and What are The Precautions to Be Taken Storing The Data In ASCII Format. Thanks In Advance

    D RaviBeeR N 3 Replies Last reply
    0
    • S Shaffiq

      Hi All, I Need Help Regarding The Storing of Data in ASCII format How To store TEXT Data in ASCII Format and In which Format Ascii Data to be Stored and What are The Precautions to Be Taken Storing The Data In ASCII Format. Thanks In Advance

      D Offline
      D Offline
      dog_spawn
      wrote on last edited by
      #2

      Nice Use Of Caps! http://www.cplusplus.com/doc/papers/ascii.html[^]

      1 Reply Last reply
      0
      • S Shaffiq

        Hi All, I Need Help Regarding The Storing of Data in ASCII format How To store TEXT Data in ASCII Format and In which Format Ascii Data to be Stored and What are The Precautions to Be Taken Storing The Data In ASCII Format. Thanks In Advance

        RaviBeeR Offline
        RaviBeeR Offline
        RaviBee
        wrote on last edited by
        #3

        One down side to storing data in plain ASCII is that it's readable using a simple text editor like Notepad. Another limitation is that you're limited to the ASCII set of characters, which means if you want to store binary data, you'll need to convert it to ASCII (which causes a 2x increase in size) before storing it. If you're looking for a general article on serializing data, you might find this set[^] of articles helpful. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

        1 Reply Last reply
        0
        • S Shaffiq

          Hi All, I Need Help Regarding The Storing of Data in ASCII format How To store TEXT Data in ASCII Format and In which Format Ascii Data to be Stored and What are The Precautions to Be Taken Storing The Data In ASCII Format. Thanks In Advance

          N Offline
          N Offline
          Navin
          wrote on last edited by
          #4

          Check out CStdioFile, it will do what you want. Also you can use regular C++ iostreams (e.g., ifstream and ofstream) to be more "standard" or if you aren't using MFC. MSDN has docs for all of these. "When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein

          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