I have a TXT file (MyFile.txt) in my shared project which I try to read with File.ReadAllLines()
I tried both File.ReadAllLines("MyFile.txt")
and File.ReadAllLines("MyApp\MyFile.txt")
and they return:
System.IO.FileNotFoundException: Could not find file
and
System.IO.DirectoryNotFoundException: Could not find a part of the path
respectively.
Which is the correct path?