Define ToFile on the pointer to chain