java i/o question: where is stuff.txt???
hello
i am learning java on eclipse.
if i am correct this program should output :
"writing to output
end of program"
in eclipse and
return "the quick brown bla bla" output in stuff.txt...i cant find stuff.txt in eclipse???????
Code:
package worksheet;
import java.io.*;
public class ABC {
public static void main(String[] args)
{
PrintWriter outputStream = null;
try
{
outputStream = new PrintWriter(new FileOutputStream("stuff.txt"));
}
catch(FileNotFoundException e)
{
System.out.println("Error opening the file stuff.txt");
System.exit(0);
}
System.out.println("Writing to file");
outputStream.println("The quick brown fox");
outputStream.println("jumped pver the lazy dog");
outputStream.close();
System.out.println("End of program");
}
}