public StringBuffer ReadFileTolines(String FileName){
// TODO Auto-generated method stub
File test = new File(FileName);
StringBuffer result = new StringBuffer();
try {
FileReader fr = new FileReader(test);
BufferedReader br = new BufferedReader(fr);
String line = br.readLine();
while(line!=null){
result.append(line);
line = br.readLine();
}
br.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
return result;
}