I’m having issues reading a txt file from the Assets folder when running a build. No problem when running in the editor.
FileNotFoundException: Could not find file "C:\Users\lexi-\Desktop\Builds\Dont Sleep_Data\lostClothes.txt"
Here’s the code I’m using.
public static string Get(string fileName)
{
string path = $"{Application.dataPath}/{fileName}.txt";
return File.ReadAllText(path);
}