Writing string to a file on a new line every time

Use “\n”:

file.write("My String\n")

See the Python manual for reference.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)