Add writing tranning data to a file feature