in reply to Matching two files

What have you tried to solve the problem and where did you go wrong? Can you even read the files? What data structures would you expect to use? How would you get the data from the file to the data structure?

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^2: Matching two files
by thickice97 (Initiate) on Nov 08, 2007 at 20:06 UTC
    I thought of using the cutting the necessary columns and using diff. But because of first file format. I would need additional processing for the fields. And as there are spaces in the values which I need to handle. Do you think if I store each of the files in a array and then compare will that be good? But how do I handle the spaces and a string of values stored in a column.
      Then why don't you show us how you're reading the first file, how you're parsing the fields, how you're storing the information, etc.?

      If you show us what you've tried, we can make suggestions on how to complete your homework assignment.