I need to save formated text into file to OS and the to read the file and update it. What is the best way to do that?
It's simple, just use file_get_contents() and file_put_contents() functions.
Have you heard of www.php.net ?