ten chang wrote:i tried with
am not sure if this is the right way
And when you looked at the documentation for that write() call, it told you that the Writer will attach itself to the file name you pass, and write out whatever you're thinking of, without you telling it what to write?
Because that how you must think it behaves, based on what you said you're trying to do.