Sometimes your anti-virus software prevents writing to a file quickly because it is inspecting it with each pass of the loop. You can turn off your anti-virus software while running your program or you can use the sleep command to slow down the loop to get around the problem.
↧