Write file, list contents