The Code of Criminal Procedure, 1973 (CrPc)
200. Examination of complainant.
A Magistrate taking cognizance of an offence on complaint shall examine upon oath the complainant and the witnesses present, if any, and the substance of such examination shall be reduced to writing and shall be signed by the complainant and the witnesses, and also by the Magistrate:
Provided that, when the complaint is made in writing, the Magistrate need not examine the complainant and the witnesses-
(a) If a public servant acting or purporting to act in the discharge of his official duties or a court has made the complaint; or
(b) If the Magistrate makes over the case for inquiry, or trial to another Magistrate under section 192:
Provided further that if the Magistrate makes over the case to another Magistrate under section 192 after examining the complainant and the witnesses, the latter Magistrate need not re-examine them.