Set profile from file.