'File' does not contain a definition for 'CreateText''

void Start () {
playerPositions.Add(this.transform.position);
if (File.Exists(fileName))
{
//Debug.Log(fileName + " already exists.");
//fileExists = true;
return;
}
sr = File.CreateText (fileName);
}

It had worked in the past but I’m not sure why it won’t work now. :frowning:

Did you name one of your scripts as File.cs, by any chance?