The magistrate or his clerk must keep the depositions taken on the examination, if any have been taken, and the statement of the defendant, if any, until they are returned to the proper court, and must not permit them to be inspected by any person except a judge of a court having jurisdiction of the offense, the district attorney, and the defendant and his counsel.
R.L.1910, § 5676.