welldefined
Programmer
Hi,
I tried to put a line into a text file without success:
try
{
FileWriter fw = new FileWriter("out.txt");
BufferedWriter bw = new BufferedWriter(fw);
}
catch(IOException e)
{
}
bw.write("inputed a line: ");
It said "bw cannot be resolved".
Just learnt how to get a line from a text file, I thought I might be able to input a line to a text file in a similar way.....
I tried to put a line into a text file without success:
try
{
FileWriter fw = new FileWriter("out.txt");
BufferedWriter bw = new BufferedWriter(fw);
}
catch(IOException e)
{
}
bw.write("inputed a line: ");
It said "bw cannot be resolved".
Just learnt how to get a line from a text file, I thought I might be able to input a line to a text file in a similar way.....