Help needed regarding reading files. Need Fast access
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.