Split file by class name