Microsoft Interview Question

Transfer a binary tree to a file, and be able to build the tree back from that file.