From comments I now know that .cs file get compiled and are not really in the exe, so this post is on how to get the text from an txt content
------------------------------------------------------------------------
For example if I had a project that has a file named "ThisIsText.txt" inside it, could I be able to get the text from it? What about if it's a .cs C# file?
I know that you could get text with System.IO.File.ReadAllText
, but that only works if the file exist, not when the program is compiled.
For example in img, could a C# console program just print out the Program.cs or ThisIsText.txt?
Edit: The txt file build action is Content.