I want to read the first line of a text file that I added to the root directory of my project. Meaning, my solution explorer is showing the .txt file along side my .cs files
From Solution Explorer, right click on myfile.txt and choose "Properties"
From there, set the Build Action to content and Copy to Output Directory to either Copy always or Copy if newer
Build Action
content
Copy to Output Directory
Copy always
Copy if newer