When a plaintiff is compelled to pay the costs of his suit in consequence of a failure on the part of his attorney to file his complaint in proper time, he may sue such attorney for all the costs by him so paid, and the receipt of the clerk may be given in evidence in support of such claim.
N.C. Gen. Stat. § 84-12