Hi all,
I want to compare the line1 in file1 with all the lines in file2 .....

like dat i need to repeat for all the lines in file1

pls tell me the way how to achieve this.........


while (( cnt5= actlFileBufRdr.readLine()) != null){
s[i]=cnt5;
count++;
i++;
}
while (( cnt6= expcFileBufRdr.readLine()) != null){
s1[j]=cnt6;
count1++;
j++;
}
for(i=0;i<count;i++)
for(j=0;j<count1;j++) {
/* if(s[i]==s1[j]) {
i++; }
else
{
if(i==j) {
resultFileBufWrtr.write(s[i]);
resultFileBufWrtr.append(System.getProperty("line. separator"));
} } */
if(s[i]==s1[j])
{
s[i]="0";s1[j]="0"; i++; }
}

for(i=0;i<count;i++)
for(j=0;j<count1;j++)
{
if(i==j)
if(s[i]!="0" && s1[j]!="0" ) {
System.out.println(s[i]);
resultFileBufWrtr.write(s[i]);
resultFileBufWrtr.append(System.getProperty("line. separator"));
}}






Pls tell me the modification or tell me the way................ pls