This code works in my unity project by pressing play, but this code doesn't work when I build it, why?
void ReadString()
{
string path = "Assets\\Turkey\\daglar.txt";
FileStream akis = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader reader = new StreamReader(akis, Encoding.GetEncoding("iso-8859-9"), false);
while (true)
{
dag = reader.ReadLine();
if (dag != null)
daglar.Add(dag);
else break;
}
reader.Close();``
}