write full yi an to file