Wednesday, August 18, 2010

Java: writing to a file, where is the output file ?

Programmer Question

        FileWriter outFile = null;
try {
outFile = new FileWriter("member.txt");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
out.println("test");


Running that command, where is the member.txt ? I am using windows vista. UAC enabled so when I run it, I don't think it's writing to the txt file. txt file is created however, but it's empty.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails