Reading a document is often easier to implement than writing it out
correctly. Reading is also safer, because you're not overwriting any
data; if you try to save the document, you might be doing so to an
existing filename, and if the resulting format is invalid by the
standards of whatever you want to read it next, then you've just caused
data loss.