Implement reading of train file