Joule's law of heating states that heat produced in joules when a current of I amperes given by H = I2Rt. Thus the heat produced in a write is directly proportional to :
(i) Square of current (ii) Resistance of wire (iii) Time for which current is passed