how do i make this write each iteration to a separate line?
"text_file = open('d:/cw01.txt',"a") "text_file.write('$x:{}, y:{}; rgb:{}'.format(x_block, y_block, colour)) "text_file.close()
Put a \n at the end of the line?
Edit: \r\n on Windows
@moocher started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
how do i make this write each iteration to a separate line?
"text_file = open('d:/cw01.txt',"a")
"text_file.write('$x:{}, y:{}; rgb:{}'.format(x_block, y_block, colour))
"text_file.close()