Need help to generate critical report

N

Nick

Hi,

I need to compare 2 tab demilited files. The row order might differ.
So my plan is to convert them into some objects and then compare the
two objects.

Any better suggestion. And how do I extract the records from the tab
de milited file using Java


Please help !

Cheers
Nick
 
R

RedGrittyBrick

Nick said:
I need to compare 2 tab demilited files. The row order might differ.
So my plan is to convert them into some objects and then compare the
two objects.

Any better suggestion.

On Unix/Linux etc
sort file1 > file1.sorted
sort file2 > file2.sorted
diff file1.sorted file2.sorted
And how do I extract the records from the tab
de milited file using Java

<nitpick>
You mean "delimited" as in a marker at each end. However It may be that
your file has values that are tab separated rather than tab delimited.
</nitpick>

The following may be useful.
FileReader.read()
String.split()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,247
Members
46,844
Latest member
JudyGvh32

Latest Threads

Top