C-sharpAsk
This site contains all the question regarding c#sharp and dot-net
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment