"text" files are binary files, by the way. The binary functions can be way faster for handing "text" files, depending on the size and what is being done. I know you wanted the syntax but this is important to know if you ever have to handle huge text files like generated xml gone wrong.