You are on page 1of 1

public String readFile(String filelnput){

String s="";
try{
File f = new File(filelnput);
FilelnputStream in = new FilelnputStream(f);
System.out.printin(f.length());
long fl = f.length();
int j = (int)f.length();
char[] ch = new charf[j];
for(int i=0; i<f.length(); i++){
ch[i]=(char)in.read();
}
s = String.copyValueOf(ch);
}
catch(IOException e){
System.out.printin(e.toString());
}

return s;

You might also like