boilr
boilr copied to clipboard
Add os.O_TRUNC flag to os.OpenFile to solve trailing junk issue.
Without the O_TRUNC flag, if boilr is run more than once, and the resulting output is shorter than the previous run, then the resulting files have leftovers at the end from the previous file contents.
Ping @tmrts