How to fix this ?

while(readdata != null)
{
var getdata = readdata.ToString().Split(“=” [0]);

       if(getdata[0] == "meth")methas.meth = getdata[1].ToString();
       readdata = loadeddata.ReadLine();
    }

Assets/Scripts/SaveLoad.js(122,65): BCE0022: Cannot convert ‘String’ to ‘int’.

Try using:

string input;
int number;
int.TryParse(input, out number);

Then “number” will be the integer represented by “input”. You can’t just do (int)input;