Added a function to set the contents of a FileDocument with the contents of a file from the resources.