Try this script:
for j=1,50 do
print("20K"..j)
file.open("20K"..j..".txt", "w")
for i=1,1280 do
file.writeline('0123456789ABCDE')
end
file.close()
end
Will be written to files...
20K3.txt size: 14080
20K2.txt size: 20480
20K1.txt size: 20480
...after which the module is restarted.
An attempt to remove any of these files...
file.remove("20K1.txt")
...also resets the module (file is not deleted).
What to do?