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. Design and Architecture
  4. Csv File Compare

Csv File Compare

Scheduled Pinned Locked Moved Design and Architecture
designquestionlounge
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.
  • B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #1

    I'm looking at creating a CSV (or, in general, delimited) file compare tool. Using an everyday diff tool is OK, but I would like to get results in terms of columns, i.e. I want to highlight columns added or delete, and just make the user experience a little better for the testers for a mammoth test project I'm embarking on. Where can I find out more about compare algorithms?

    L E 2 Replies Last reply
    0
    • B Brady Kelly

      I'm looking at creating a CSV (or, in general, delimited) file compare tool. Using an everyday diff tool is OK, but I would like to get results in terms of columns, i.e. I want to highlight columns added or delete, and just make the user experience a little better for the testers for a mammoth test project I'm embarking on. Where can I find out more about compare algorithms?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      How's that going Brady?

      B 1 Reply Last reply
      0
      • L led mike

        How's that going Brady?

        B Offline
        B Offline
        Brady Kelly
        wrote on last edited by
        #3

        It hasn't been, due to other month-end pressures at work, but I've just found a wikipedia article on the algorithm used by diff. It's based on the Longest Common Sequence problem, but it's now 03:40, and it's a little difficult to understand.

        1 Reply Last reply
        0
        • B Brady Kelly

          I'm looking at creating a CSV (or, in general, delimited) file compare tool. Using an everyday diff tool is OK, but I would like to get results in terms of columns, i.e. I want to highlight columns added or delete, and just make the user experience a little better for the testers for a mammoth test project I'm embarking on. Where can I find out more about compare algorithms?

          E Offline
          E Offline
          egottwald
          wrote on last edited by
          #4

          Have you considered starting with an Open Source diff utility [like WinMerge - www.winmerge.org] or the sample diff tool on this site [www.codeproject.com/tools/difftool.asp]?

          B 1 Reply Last reply
          0
          • E egottwald

            Have you considered starting with an Open Source diff utility [like WinMerge - www.winmerge.org] or the sample diff tool on this site [www.codeproject.com/tools/difftool.asp]?

            B Offline
            B Offline
            Brady Kelly
            wrote on last edited by
            #5

            egottwald wrote:

            www.winmerge.org

            Yes, I have, but I think the Perl utility I've just found, csvdiff[^], will get me further, and I stand to learn some Perl if I need to tweak it.

            MY BLOG

            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