writeFile package:text

Write a string to a file. The file is truncated to zero length before writing begins.