The Magistrate may record any statement of a witness made to him in the course of an investigation at any time, but before the commencement of the inquiry or trial. ...