Compare Two Text Files (Beginning Java forum at JavaRanch)
Few corrections FileInputStream fstream2 = new FileInputStream("textfile1.txt"); -> You are reading same file if(strLine1 = strLine2) -> You should use .equals() method to compare two object values. I don't know of any direct aPI whic can be used to compa...