a = 1 while a<=100: file = open("dosya.txt", "a", encoding="utf-8") file.write(str(a) + "\n") file.close() a+=1