Hi,
I have given below the coding for the above scenario...
but i am getting "filenotfoundexception"......

...
Can please anyone help me out like how to solve that......
coding:-
import java.io.*;
class markmethod
{
public static void main(String args[]) throws Exception
{
File f=new File("D:/file/out.txt");
FileInputStream fis=new FileInputStream(f);
BufferedInputStream bis=new BufferedInputStream(fis);
int i;
while( (i=bis.read()) != -1 )
{
if( (char) i == '3' )
bis.mark(62);
}
// System.out.println();
// System.out.println((char)32);
bis.reset();
while( (i=bis.read()) != -1 )
{
System.out.print( (char) i );
}
}
}