Save number int to hard disk.

I need to save a number to my hard disk. Then load the number from my hard disk from that location.
This is what I have for saving the number.

static var levNo = 1;
function OnCollisionEnter () {
	levNo = 2;	
}
//save number to hard disk

This is for loading the number off of the hard disk.

if(Save Level.levNo == 2)
{
	print("Level 1 Loaded");
	//turn level 1 gui on	
}

So I just need a number saved and loaded. But to a specific location. Any help please?

Is there any particular reason you need it saved to a specific location? Because using PlayerPrefs would be the simplest method.

–Eric

I tried playerprefs, but I didn’t understand it at all. If you can make a script with playerprefs, that might work.
I don’t really need a specific place for it to be saved, just wherever it gets saved.
Thanks.

First of all u do PlayerPrefs.Set
then u use PlayerPrefs.Get to get the set value.