Please make sure that "actual" and "predicted" are stored in the same format on disk.  Simply make it the same format like in SVMlight, but without features: One label per line, text format.

And please rename this file to "evaluate_multiclass_labels", because it has nothing to do with SVMs any more.