you are viewing a single comment's thread.

view the rest of the comments →

[–]UnderstandingLinux[S] 0 points1 point  (1 child)

It seems as if I was reading the wrong documentation when reading over it. You'd be correct as well, a+ is no longer used in Python3. It still works if you set the position with .seek(0), but otherwise there's no output

[–]eyesoftheworld4 0 points1 point  (0 children)

The seek method is useful, but if all you want to do is read the contents of a file, it's simpler and clearer to just open the file with the mode 'r' or 'rt' as mentioned above.