If you are using a FileWriter in append mode (i.e append set to true in the constructor) is there any easy way of determining if you are appending to an existing file or writing to a new file?
Clearly you could try reading the file first but I wonder if there a one liner to know whether you are creating the file or not?
Thanks