This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
i am comparing two text file by checking occurance of a line in file 1 by comparing it with each line in file 2(not line by line) i have to print in 3rd text file as difference please see my progrm and tell me modification required
Welcome to the JavaRanch, Cool Dude. First, you must have missed our naming policy on the way in. To keep things friendly around here we ask that people use their real name, that is, a first and last name, seperated by a space and not obviously fake. You can change your displayed name here. Thanks for your prompt attention. Second, we get a lot of people coming here with schoolwork so we ask that you Do Your Own Homework. Have a look at our FAQ: How To Ask Questions On JavaRanch and feel free to come back with any specific questions you have.
You can probably Google on "text diff java" and find a lot of tips on algorithms. There are some serious "computer science" solutions that are so compact I have no idea what they do, and some that make more sense. Let us know what you find!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi