Save file with correct name, get it from the file content