Please how to detect that the file exists and don't create a new one each time I run it.
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();
}