<div> </div>
<div>I'm trying to create a program that creates a file and write the number for each line. Here is what I have so far but can't seem to get the loop and write correct.</div>
<div> </div>
<div>Thanks in advance.</div>
<div> </div>
<p>print "Creating txt file"<br>tfile = open("25.txt", "w")</p>
<p>for i in range(25):<br> x = int(1)<br> tfile.writelines("x\n")<br> x += 1</p>
<p>tfile.close() </p>
<div> </div>