added a way to make files from a file rather than a string