read training file