import java.io.*;
import java.util.*;
import java.lang.*;
class Files
{
public static void main(String args[])
{
char ch;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
FileOutputStream f=new FileOutputStream("yo.txt",true);
while(ch=br.read()!='%')
{
f.write((int)ch);
}
f.close();
}
}
it shows an error at
while(ch=br.read()!='%')
saying incompatible type,though i tried typecasting..
please help