Sunday, January 9, 2011

How to create folder in c#


           System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo("c:\\hello");
            if (!dir.Exists)
            {
                 dir.Create();
            }
it will check the directory exists or not if it is not exist then it will create the directory.

No comments:

Post a Comment