In the given example you will see how a two text file's content are compared.
The BufferedReader
class allow us to read a file. The readLine()
method used to read the contents of the specified file.
The way of comparison
is in such a way that it takes content of a file and assign it to as a string
and
then compare it with the other file's content which too assigned as
string..
import java.io.*;
|
