The first time my application runs I want to create a folder and copy CI02Data.txt, which is stored in the release folder, into the new folder. My program works fine in development, but when I package it and install from an appxbundle file, CI02Data.txt is not found. What is the correct path to access CI02Data.txt?
if (!Directory.Exists(@”c:Plan of StudyData”))
Directory.CreateDirectory(@”c:Plan of StudyData”);
if (!File.Exists(@”c:Plan of StudyDataCI02Data.txt”))
File.Copy(“CI02Data.txt”, @”c:Plan of StudyDataCI02Data.txt”);
Jim Collins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.