How to simply save variables?

I know there are many ways to save variables, but is there any really simple way to do it?
just something like

function Update () {

if(Input.GetKeyDown(“h”))
{
//Save VARIABLE
Save(VARIABLE, 1);
}

if(Input.GetKeyDown(“g”)){
//Load VARIABLE
Load(VARIABLE);
}

}

Is there any way to do this?

PlayerPrefs.SetInt(“Name”, int);
PlayerPrefs.SetString(“Name”, string);
PlayerPrefs.SetFloat(“Name”, float);