Hi, I have a scipt which acesses a file but why is this not working?
System.IO.FileInfo finfo = new FileInfo(path);
System.IO.StreamReader reader = finfo.OpenText();
The error is:
Type `System.IO.FileInfo' does not contain a definition for `OpenText' and no extension method `OpenText' of type `System.IO.FileInfo' could be found (are you missing a using directive or an assembly reference?)
But i have:
using UnityEngine;
using UnityEditor;
using System.IO;
using System;
using System.Collections.Generic;
using System.Xml;