i am new to c#. if i have a file in ProjectFolder\file.txt, how can i access it in code. eg. i want to read a file in code. i remember the path looks like application://.../file.txt but i cant remember how exactly
i am new to c#. if i have a file in ProjectFolder\file.txt , how
Share
Just set your Copy to Output Directory property of your file to Copy if newer:
When you run your program from the output directory, you can simply open the file from the current directory: