Genital Warts...How long do these last for? I Only Have 1 pimple and also

so if i have sex with a condom with my partner will he get them too? And i went to the doctor and she put a cream on it and it burned i guess thats the medication?