public static void main(String [] args) throws IOException
    {
        File f = new File("D:\\abc.txt");
        if (f.exists())
        {
            f.delete();
        }
        f.createNewFile();
        
    }