File file=new File("D:\\eclworkspace\\echarge\\webcontext.txt");
try
{
PrintStream context=new PrintStream(new FileOutputStream(file));
context.println(result);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try
{
PrintStream context=new PrintStream(new FileOutputStream(file));
context.println(result);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}