摘要:
在Demo项目中,新建文件夹Files,其中放置file1.txt, file2.txt1. file1.txt的BuildAction为content:Stream streamWithContent = Application.GetResourceStream(new Uri("Files/file1.txt", UriKind.Relative)).Stream;String ssWithContent = new StreamReader(streamWithContent).ReadToEnd();2. file2.txt的BuildAction为resourc 阅读全文