Before an information is filed there must be a preliminary examination of the case against the defendant and an order holding him to answer made under Section 872. The proceeding for a preliminary examination must be commenced by written complaint, as provided elsewhere in this code.