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. The Lounge
  3. Favorite Method to store data?

Favorite Method to store data?

Scheduled Pinned Locked Moved The Lounge
questionxml
7 Posts 7 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
    StevenWalsh
    wrote on last edited by
    #1

    Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?

    M L M G V 5 Replies Last reply
    0
    • S StevenWalsh

      Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?

      M Offline
      M Offline
      Mustafa Ismail Mustafa
      wrote on last edited by
      #2

      Rarely, if ever, was there the need for me to store my files in binary format. I use XML as my preferred file format unless needs dictate otherwise.

      "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook "There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib "Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"

      1 Reply Last reply
      0
      • S StevenWalsh

        Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Depends on the data :)

        xacc.ide
        IronScheme a R5RS-compliant Scheme on the DLR
        The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

        1 Reply Last reply
        0
        • S StevenWalsh

          Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?

          M Offline
          M Offline
          Marc Soleda
          wrote on last edited by
          #4

          Depends on the data but if it's conf, preferences, ... I prefer XML

          ... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits

          1 Reply Last reply
          0
          • S StevenWalsh

            Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?

            G Offline
            G Offline
            Gary R Wheeler
            wrote on last edited by
            #5

            I'll second Mustafa's suggestion of XML. You can't beat a format that supports highly-structured data that you can debug with Notepad if necessary. I reserve XML for data that I'm persisting, with the idea of loading it into my application. For pure logging situations (output only), I'll dump the data as simply formatted text, or as HTML.


            Software Zen: delete this;

            Fold With Us![^]

            P 1 Reply Last reply
            0
            • G Gary R Wheeler

              I'll second Mustafa's suggestion of XML. You can't beat a format that supports highly-structured data that you can debug with Notepad if necessary. I reserve XML for data that I'm persisting, with the idea of loading it into my application. For pure logging situations (output only), I'll dump the data as simply formatted text, or as HTML.


              Software Zen: delete this;

              Fold With Us![^]

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Gary R. Wheeler wrote:

              You can't beat a format that supports highly-structured data that you can debug with Notepad if necessary

              Sorry to be pedantic, but you can't debug with Notepad. Well - not without you doing some serious hacking on it beforehand.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              1 Reply Last reply
              0
              • S StevenWalsh

                Not a Programming question.. just a question out of curiosity. I've been working on a Windows Service, I had the need to dump some data to a file. I started creating a binary file... however now that I'm 5 hours into debugging it.. I'm starting to think I should have used XML. What's your preference? Is it different based on the situation and the language you're using?

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #7

                (*) SQLServer (*) Access (*) XML As far as possible, try clinging on to a standard database.

                Vasudevan Deepak Kumar Personal Homepage
                Tech Gossips
                A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                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