c#
pan93529
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c# 获取文件属性
http://www.fooao.com/compile/show/1184.aspx添加引用菜单-项目-添加引用-com-Microsoft shell Control And Automation.添加代码using Shell32;打开解决方案资源管理器,找到引用-shell32-右击-属性-更改嵌入互操作类型属性为false。代码: /转载 2013-10-14 00:12:59 · 853 阅读 · 0 评论 -
c# 遍历文件夹下所有的子文件夹以及文件 递归
private void getFiles(string path) { string[] strFileNames = Directory.GetFiles(path); string[] strDirectories = Directory.GetDirectories(path); for原创 2013-10-14 00:14:40 · 765 阅读 · 0 评论 -
c# 选择文件与选择文件夹
文件选择工具箱--对话框--openFileDialog-拖之if (openFileDialog1.ShowDialog() == DialogResult.OK){ textBox2.Text = openFileDialog1.FileName;} 文件夹选择对话框--folderBrowserDialog--拖之。 if(folderBrowserDialog原创 2013-10-14 01:20:57 · 648 阅读 · 0 评论 -
c# 读写txt
StreamReader sr = new StreamReader("TestFile.txt")///StreamReader sr = new StreamReader("TestFile.txt",Encoding.GetEncoding("GB2312"))///GBKString line;StringBuilder sb = new StringBuilder();w原创 2013-10-14 01:11:23 · 565 阅读 · 0 评论
分享