This blog is for Automation Test Engineers

Tuesday, 29 August 2017

How to retrieve data from notepad

FileInputStream fis=new FileInputStream("xyz.txt");
int j=0;
while(j=fis.read()!=-1){
System.out.println(char)j);
}
fos.close();

}


0

0 comments:

Post a Comment