This code is working well:
f = open("C:/Dokumente und Einstellungen/schnei17/Desktop/a.txt", "r")
f.seek(0)
print f.read(200)
But here read() doesn't work properly:
print f.read(2000)
The output is very short now. Is this a bug? The file contains unicode-data. Thanks in advance.
Solution:
f = open("C:/Dokumente und Einstellungen/schnei17/Desktop/a.txt", "rb")
f.seek(0)
print f.read(200)