Open a buffer for writing without having to create the parent directories.