Updated the file editor to use new file APIs