How To Ideas | How To Articles | How To Tutorials


List/Grid Tag Archives: directoryinfo

How To Get List Of All The Files Present In A Folder Using C#

You are looking for a simple code that can give you list of all the files present in a folder or directory using C#, then this article is for you. In this article I will show you how can you get list of all the files present in a specific directory. I will just print the names of all the files in the Console, but you can perform some other… Read more »

How To Create A New Folder Using C#

IF you want your application to create folders or directories dynamically at run time to save any kind of data or files, you can do so by using any of the following command/method.     System.IO.Directory.CreateDirectory(@"D:\hello") System.IO.DirectoryInfo dinfo = new DirectoryInfo(@"D:\hello"); dinfo.Create();   If you want to check whether a directory with the name you specified already exists or not then you can try the following method   System.IO.DirectoryInfo dinfo =… Read more »



© 9662 How To Ideas. All rights reserved.
Proudly designed by Theme Junkie.