M
moongeegee
I open a file by using FileWriter in main() function, the code as
below. I want to pass the outputStream
as parameter as foo(str,outputStream). Please help.
try {
FileWriter outputStream = new FileWriter("out.txt",true);
....
}
catch(...) {
}
foo(str,outputStream);
below. I want to pass the outputStream
as parameter as foo(str,outputStream). Please help.
try {
FileWriter outputStream = new FileWriter("out.txt",true);
....
}
catch(...) {
}
foo(str,outputStream);