public static void main(String[] args) {

Logger logger = Logger.getLogger("MyLog");
FileHandler fh;

try {

// This block configure the logger with handler and formatter
fh = new FileHandler("C:/newgui/MyLogFile.log");
logger.addHandler(fh);
//logger.setLevel(Level.ALL);
SimpleFormatter formatter = new SimpleFormatter();
fh.setFormatter(formatter);

// the following statement is used to log any messages
logger.info("");

} catch (SecurityException e) {
} catch (IOException e) {
}

logger.info("error log");



this code generates two output files called .mylogfile.log and myfile.log.lck f
.
How do i stop it outputting two each time i run it??