Add StandardOpenOption.TRUNCATE_EXISTING to textToFile() method
Merge pull request #130 from k33g/fix/texttofile

Add StandardOpenOption.TRUNCATE_EXISTING to textToFile() method