base: File API

Missing:

* Docs as docbook, fix typos etc
It is treated as a read error.