Question: I am facing issue to view a text file that has been created and written using python 2.7 with Raspbian Jessie. I am posting here a simple code. `f = open('helloworld.txt','w')
f.write("hello world \n Have a good day")
f.close()`
After running the code on raspberrypi, a text file is generated and the characters are written accordingly (a new line is added after hello world). However, when i copy the text file and open it in my PC or Laptop with Windows 7, everything is written in just a single line. 

Thanks a lot.

Answer: 
It's caused by end line character interpretation. Try `\r\n` instead of `\n` if You want proper line break for Windows.
Of course it's possible to display properly broken line on Windows - just use alternative software like Notepad++ that handles different line breaking styles.

For more information, please see <https://en.wikipedia.org/wiki/Newline#Representations_in_different_character_encoding_specifications>
Python 2.7 provides [universal new-line support](http://docs.python.org/library/functions.html#open) with text files. You might have to use mode `'U'` when opening text files for transparent (i.e. automatic) cross-platform support. See [this question on stackoverflow](https://stackoverflow.com/questions/4599936) for details.