Improved perfomance removing file out Delete call

It is not necessary to use File.Delete since with the
FileMode.Create it will set the size of the file to 0.
In this way, instead of remove and create a new file,
the same file is used but writting it from zero.