Create a new file from the given file (in case the given file is closed before we read it)