Microsoft interview question

Q: How would you design and implement a file-saving module?