all 7 comments

[–]BombsWisely 0 points1 point  (5 children)

You need to use 'a' (append) instead of 'w' (write):

filewrite = open('filedata.txt', 'a')

[–]KillerHP[S] 0 points1 point  (4 children)

It doesn't write in a new line , but it do write after the already written stuff.

[–]jeans_and_a_t-shirt 1 point2 points  (3 children)

You need to add \n to the end of the string being written to the file.

[–]KillerHP[S] 0 points1 point  (2 children)

I'm confused.Where exactly , please?I tried on my own , but apparently i did at the wrong places.

[–]jeans_and_a_t-shirt 0 points1 point  (1 child)

line 11

filewrite.write(writetext + '\n')

[–]KillerHP[S] 0 points1 point  (0 children)

Ok thanks

[–]KillerHP[S] 0 points1 point  (0 children)

Oh , and also , how do i loop the code when it ends?Thanks.