So I have a program where I need to create a file and read from it once.
The only issue i'm having is for how to check if the file name already exists. Right now it's only a simple set up but I'm going to have to build up on it for later high end methods and checking.
So this is what I have so far -
x = new Formatter(filename + ".csv");
x.format("%s, %s", height, weight);
x.close();
So how do I let my formatter check for the already existing value "filename"?