I got a .dat file, encoded in ANSI which contains NUL caracters (not only !).
I wan't to read it into a str object iot cut something in the whole str obtained.
But file.read()
stops when the first NUL is reached.
I'm lost :)
My code :
file=open(source, mode='rt')
fulltext=file.read()
print(fulltext)
NUL is show with Notepad++ I'm on Windows XP, with PortablePython 3.2 The file is a special DAT file that can be edited with notepad as a text.
As Evert has commented in my question, the problem was focused on the use of Pyscripter ! So, this question is closed :)