What is the easiest way to loop through a folder of files in C#?

Posted by badpanda on Stack Overflow See other posts from Stack Overflow or by badpanda
Published on 2010-06-08T14:44:37Z Indexed on 2010/06/08 14:52 UTC
Read the original article Hit count: 256

Filed under:
|
|
|

I am new to C# and am trying to write a program that navigates the local file system using a config file containing relevant filepaths. My question is this: What are the best practices to use when performing file I/O (this will be from the desktop app to a server and back) and file system navigation in C#?

I know how to google, and I have found several solutions, but I would like to know which of the various functions is most robust and flexible. As well, if anyone has any tips regarding exception handling for C# file I/O that would also be very helpful.

Thanks!!!

badPanda

© Stack Overflow or respective owner

Related posts about c#

Related posts about parsing