Hello,
Welcome to Microsoft Q&A!
I have used your code to access simple file where under GameScenarios
folder, and I could access file successfully. If you view file not found exception, please check if your file's build action is content.(right click the file -> properties -> build action). And you need also to check if gameFileName
is correct.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.