Writing to a file

I need to write to a errors to a file. I am using Filewriter and File outputFile and then in a try..catch statement, out.write and out.close. It comiles but how do I check if it actually will be written to the file when an error occurs. Thanks.
[265 byte] By [Nnm] at [2007-9-26 1:39:31]
# 1
I am not sure I understand but try to force an error and print out your message to the log.Or, while testing, do the print out in the "try"-part of your code.Klint
saen at 2007-6-29 2:28:44 > top of Java-index,Archived Forums,Java Programming...
# 2
Slightly modify your code that an appropriate error occurs. run the programm. If writing was successfull, undo changes.
arcosh at 2007-6-29 2:28:44 > top of Java-index,Archived Forums,Java Programming...