Upon the filing of a complaint or indictment, the court wherein same is filed shall have authority to issue a writ of attachment to secure the maximum fine allowable by law for the offense charged, and costs.