标题:ResourceManager读取txt文件
只看楼主
哦是菜鸟
Rank: 2
等 级:论坛游民
帖 子:40
专家分:15
注 册:2011-9-14
结帖率:87.5%
 问题点数:0 回复次数:0 
ResourceManager读取txt文件
   ResourceManager resourceManager = new ResourceManager(
        "WindowsFormsApplication2.Resource1",
        Assembly.GetExecutingAssembly());
           MessageBox.Show( resourceManager.GetString("String1"));

           //StreamReader sr = new StreamReader(resourceManager.GetStream("TextFile1.txt"), Encoding.GetEncoding("gb2312"));
           //StreamReader sr = (StreamReader)resourceManager.GetObject("TextFile1.txt");          string text = sr.ReadLine();
          MessageBox.Show(text);
怎么读取txt文件求解答
2011-10-05 13:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-351617-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.047921 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved