TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG-DEVEL:282] Java File I/O Question





Nishikant Kapoor wrote:
> 
> I just happen to be working on a class involving file I/O. Here is what
> I'm using for append mode:
> 
> String file = logFile;
> FileWriter fWriter = new FileWriter(file, true); // append=true
> fWriter.write(getCurrentTime() + " " + str + "\n");
> 
> Nishi
> 

Doh!!

I was so busy looking for a method on File like createNewFile that I did
not even look at alternative constructors.  I guess I could not see the
forest because the trees were in the way.

Thank you,

-- 
Perry Hoekstra
Consultant
Talent Software Solutions
dutchman@mn.uswest.net