Input/Output Learning Mode

Which function is specifically designed to write a string to a text file?