Hi Robin,
Thanks for your response.
But as per the javadoc you have attached :
Robin John wrote: Some platforms, in particular, allow a file to be opened for writing by only one FileWriter (or other file-writing object) at a time. In such situations the constructors in this class will fail if the file involved is already open.
Does it mean that if there are two threads trying to work on the same file and one
thread already has the file opened up then the other thread will fail to get an instance of the writer object ?
but if one thread has written to and closed the file, then the other thread will overwrite that file and open it ?