Implement createFile