Skip to main content

Help needed regarding reading files. Need Fast access

2 replies [Last post]
gangaraju4u
Offline
Joined: 2012-03-01
Points: 0

hi,
I am trying to develop an application which compares two files(more than 100 MB each) line by line (eg: 1st line from file A to all the lines in file b and continously till the end of file A).Its taking a lot of time to read using file input stream and the compare line by line. I found Scanner and NIO classes in online. But not sure which whice will have less processing time. Please suggest me a solution. Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sunil.chahar1
Offline
Joined: 2012-03-02
Points: 0

Use the beyond compare software by which u easly able to compare two files data.

gangaraju4u
Offline
Joined: 2012-03-01
Points: 0

beyond cmpare is not at all useful to me because one line in file1 may match up with many lines in file2 with small difference.