Tip Of The Day
What you Learned Today?
Thursday, May 5, 2011
EnumerateDirectories in .Net 4.0
if you want to return Enumerable collection of file information you can use
EnumerateFiles
DirectoryInfo DirInfo =
new
DirectoryInfo(
@"\\dir"
);
IEnumerable
=
DirInfo.EnumerateFiles();
Here is the link for Files,
Directories,
File system information and
Lines from a text file
MsdnLink:
http://msdn.microsoft.com/en-us/library/dd997370.aspx
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment