"Magistrate at the stage of discharge petition filed under Section 239 Cr.P.C., Magistrate has to record his reasons for discharging the accused, but there is no such requirement if he forms an opinion that there is a ground for presuming the accused had committed an offence which he is competent to try. In such situation he is only required to frame a charge in writing against the accused. Even in cases instituted otherwise than on police report, the Magistrate is required to write an order sowing the reasons only if he is to discharge the accused. This is clear from Section 245. As per sub-section (1) of Section 245, if a Magistrate, after taking all the evidence considers that no case against the accused has been made out which if unrebutted would warrant his conviction, he shall discharge the accused. As per sub-section (2) of Section 245, the Magistrate is empowered to discharge the accused at any previous stage of the case if he considers the charge to be groundless. On both sub-sections he is obliged to record his reasons for doing so".