Then it works. It saves the digits.
But there is no call to the write file so how can it save the digits?