Parse text files of 507 format