Tip之读取嵌入项目中的文本文件
private void ReadEmbedTxt()
{
Stream ms = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Pgeneral.SSTVisibleMenu.txt");
StreamReader sr = new StreamReader(ms);
while (sr.Peek() > 0)
{
string menu = sr.ReadLine();
}
}