ah,
but that's if invoked with the Formatter(File) constructor.
the Formatter(String) throws exception if file doesn't exist.
|
Quote:
|
fileName - The name of the file to use as the destination of this formatter. If the file exists then it will be truncated to zero size;
FileNotFoundException - If the given file name does not denote an existing, writable regular file and a new regular file of that name cannot be created, or if some other error occurs while opening or creating the file
|
and this would be the constructor invoked here.
|
Quote:
|
|
fileFind = new Formatter("CNDF.txt");
|
in that case, to do a
|
Code:
|
fileFind = new Formatter(new File("CNDF.txt")); |
?