请如何检测文件存在并且每次运行时不要创建新文件。
public static void main(String[] args) throws IOException, ClassNotFoundException {
    FileOutputStream fos = new FileOutputStream("file.tmp");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
    oos.writeObject("12345");
    oos.writeObject("Today");
    oos.close();
}