Training Fragment write to file