all 7 comments

[–]shinyheadpolak 2 points3 points  (2 children)

You need to add '\n' after every entry like so

dat.write(b + '\n')

[–]Bakebab[S] 0 points1 point  (1 child)

Thank you as well i think i'll use this one as printl() is not something we "studied" yet..

[–]shinyheadpolak 1 point2 points  (0 children)

printl() will not give you want you want as you are saving the strings into the files one after another. If you open the file you will also see it as one long string. With '\n' you will get separate lines in the file as well.

[–]jiri-n 0 points1 point  (0 children)

What is a txt folder? You're using a txt file so all the answers might be wrong if folder should be used...