How to write file attributes.
How to read file attributes as a map.