在运行时从C#中的文件夹读取文本文件的源代码

问题描述:

我想从C#的文件夹中读取多个文件中的字符.当我输入目录名称或文件夹名称时,该包含的特定目录或文件夹的文本文件应通过c#代码读取...我希望此代码尽早越好越好.请尽快给我答复

I want to Read character from multiple files from folder in C#.when I enter the Directory name or folder name then That particular directory or folder contained Text files should be got read by c# code...I want this code as early as possible . plz give me response as soon as possible

查看System.IO.Directory和System.IO.File和System.IO.Path.其中之一应具有"GetFiles"功能(将路径传递到包含文件的文件夹).
Look into System.IO.Directory and System.IO.File and System.IO.Path. One of those should have a "GetFiles" function (you pass it the path to the folder that contains the files).