Open brokeit opened 9 years ago
missing line above, correct program follows (except indentation lost):
fo = "test.txt" f= open(fo,'w') so= "12345678901234567890123456789012345678901234567890\n"
ii= 0 while ii < 1000: ii += 1 # indented f.write(so) # indented
f.close() print ii," done"
turned out to be yet another problem with the qpython included editor. all 1000 lines were actually in the text.txt file when I looked at it with the 920 text editor.
The following qpython prog only writes ~206 lines ( qpython 0.9.4 from google play):
f = open(fo,'w') so= "12345678901234567890123456789012345678901234567890\n"
ii= 0 while ii < 1000: ii += 1 f.write(so)
f.close() print ii," done"