Am 02.03.2015 20:14 schrieb sohcahto...@gmail.com:
On Monday, March 2, 2015 at 12:43:59 AM UTC-8, Sarvagya Pant wrote:

f = open("somefile.txt")

This one is the problem. Under Windows, you have to open the file in binary to avoid that something "bad" happens with it.

So just do

f = open("somefile.txt", "rb")

and you should be fine.


I don't know which is worse, the fact that you're composing your message in 
HTML, or the fact that you're using Comic Sans as your font.

#2 wouldn't be possible without #1...


Thomas
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to