saving text with its format

hi everyone
i can save text from TLFTextField to local file but when i reload it to flash it lose its format
how can i save the text with its format?
i used textlayoutformat