I have file /my/f
, which I open as:
with open('/my/f') as data_file:
for line in data_file:
print(line)
I do not want to read the whole file at once and I would like for the implicit iterator over the file lines to consider ASCII's NUL (0x00, $'\0', etc.) as a line-separator.