I have a C# project (Windows Console Application). I have created a folder named Data inside project. There are two text files inside folder Data.
How can I read the text files from "Data" folder. I tried below things.
string[] files = File.ReadAllLines(@"Data\Names.txt")
It is thowing error that file not found.
I have checked some Stackoverflow answers posted before and none of then are working for me.
How can I proceed? Thanks!