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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. storing/retrieving a lot of files

storing/retrieving a lot of files

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 4 Posters 2 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.
  • 9 Offline
    9 Offline
    9ine
    wrote on last edited by
    #1

    I need to store and access a lot of small separate files. Whats the best way to group them together in an archive like single file (not compressed for fast access reason) and not to waste disk space. are there source codes? 9ine

    P C S 3 Replies Last reply
    0
    • 9 9ine

      I need to store and access a lot of small separate files. Whats the best way to group them together in an archive like single file (not compressed for fast access reason) and not to waste disk space. are there source codes? 9ine

      P Offline
      P Offline
      pgrohs
      wrote on last edited by
      #2

      What kind of data do your files contain?

      9 1 Reply Last reply
      0
      • 9 9ine

        I need to store and access a lot of small separate files. Whats the best way to group them together in an archive like single file (not compressed for fast access reason) and not to waste disk space. are there source codes? 9ine

        C Offline
        C Offline
        cmk
        wrote on last edited by
        #3

        If you don't need to search the file data (just file names) then you may want to look at putting them in a database (e.g. MSDE aka MS SQL Srv lite). ...cmk Save the whales - collect the whole set

        1 Reply Last reply
        0
        • 9 9ine

          I need to store and access a lot of small separate files. Whats the best way to group them together in an archive like single file (not compressed for fast access reason) and not to waste disk space. are there source codes? 9ine

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          Probably the easiest is to use sturctured storage. See here[^] for documentation. Steve

          9 1 Reply Last reply
          0
          • P pgrohs

            What kind of data do your files contain?

            9 Offline
            9 Offline
            9ine
            wrote on last edited by
            #5

            just text formated signal: 3.21 2.22 4.44 5.55 ... etc 9ine

            P 1 Reply Last reply
            0
            • S Stephen Hewitt

              Probably the easiest is to use sturctured storage. See here[^] for documentation. Steve

              9 Offline
              9 Offline
              9ine
              wrote on last edited by
              #6

              I need somthing simple for console app, like TAR archive 9ine

              1 Reply Last reply
              0
              • 9 9ine

                just text formated signal: 3.21 2.22 4.44 5.55 ... etc 9ine

                P Offline
                P Offline
                pgrohs
                wrote on last edited by
                #7

                So I would try it with XML. If you use SAX to read and write the file, the performance should be acceptable. There are several easy to use implementations to do this.

                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