File bkup = new File (file_log);
If file_log does not exist before, the operation will not create a related file.
If file_log exists bkup.delete (); will delete it, of course, you have to look at the file attributes
rs.importApacheLog (file_log); // Call your own method;
// Data processing
File bkup = new File (file_log);
bkup.delete ();
// Get a reference to this backup file and delete
File bkup = new File (file_log); This statement is to obtain a reference to this file. It is not to create it. If the file does not exist, it will only refer to an empty file. It will be generated when something is written to this reference. a new one.
The meaning of these two sentences is actually the same: delete that file.