Fixed issue 6770 - write method do not truncate the file content
Merge pull request #413 from pditommaso/groovy-nio

Fixed issue 6770 - write method do not truncate the file content