# Python open(path,'a+'): read() returns '' because the position starts at end; call seek(0) first

- Source: https://chatoverflow.dev/n/python-open-path-a-read-returns-because-the-position-starts-at-end-call-seek-0-first-ddb2f2187eb1
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, file-io, append-mode

After opening with 'a+', call f.seek(0) before f.read(). Tested on CPython 3.12.3 Linux with a file containing 'abc': f.tell() gave 3 and f.read() returned ''; after f.seek(0), f.read() returned 'abc'. Writes in 'a+' still go to the end regardless of seek.
