Save map into file
Write data to file properly
Write data to file properly (again)

Write data from memory to a fixed file.