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");
SimpleFormatter formatter = new SimpleFormatter();

// the following statement is used to log any messages"");

} catch (SecurityException e) {
} catch (IOException e) {
}"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??