Upon complaint being made before a district or county attorney that an offense has been committed in his district or county, he shall reduce the complaint to writing and cause the same to be signed and sworn to by the complainant, and it shall be duly attested by said attorney.
Tex. Code Crim. Proc. § 2.04