c#的第一个程序,读出D:/下面的所有文件
来源:互联网 发布:linux系统安装包 编辑:程序博客网 时间:2024/06/09 03:29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("This program lists all the files in the directory:");
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"D:/");
foreach (System.IO.FileInfo file in dir.GetFiles("*.*"))
{
Console.WriteLine("{0}, {1}", file.Name, file.Length);
}
Console.ReadLine();
}
}
}
- c#的第一个程序,读出D:/下面的所有文件
- C#第一个程序 输出所有的水仙花数
- C#的第一个程序
- C#的第一个程序
- 我的第一个C#程序
- 我的第一个C#程序
- 第一个有意义的C#程序
- 第一个C#的控制台程序
- 我的第一个C#控制台程序
- 我的第一个C#程序
- 我的第一个C#程序
- 我的第一个C#程序
- C#2008的第一个程序HelloWord
- C#的第一个小程序
- $@--目标文件,$^--所有的依赖文件,$<--第一个依赖文件。
- 我的第一个c#文件HelloWould
- OIV 的第一个程序(基于COIN 3D)
- 创建自己的第一个direct 3D程序
- 2011-03-06 算法导论 第8章 线性时间排序
- 数据库爱好者请进来!
- RUP的灵魂
- C语言中char * 和 char []的区别
- u-boot-2010.06在unsp2440上的移植4
- c#的第一个程序,读出D:/下面的所有文件
- TOPSQL 简单分析
- 设计模式之(七)--桥接模式(bridge)
- POJ-3349-Snowflake Snow Snowflakes-hash
- 跟我一起写 Makefile(一)
- 两款HTTP流量分析工具的比较----HttpWatch VS. Fiddler
- 如何成为一个成功的jsp程序员?(转载)
- 跟我一起写 Makefile(二)
- Android联系人数据库全解析(1)