Implement FileWrite().