在运行时从C#中的文件夹读取文本文件的源代码 [英] source code of Read Text Files from Folder in C# at Runtime

查看:87
本文介绍了在运行时从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).


这篇关于在运行时从C#中的文件夹读取文本文件的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆