Save current profile into a file