N
nickname
Unregistered / Unconfirmed
GUEST, unregistred user!
using System;
using System.IO;
class DirectoryTest
{
public static void Main()
{
Directory d=new Directory("c://c#");
Directory d1;
Directory d2;
try
{
d1=d.CreateSubdirectory("file1");
}
catch(IOException e)
{
Console.WriteLine("directory fiel1 failed because:{0}",e);
return;
}
try
{
d2=d.CreateSubdirectories("file1//file2");
}
catch(IOException e)
{
Console.WriteLine("directory file2 failed because :{0}",e);
return;
}
Console.WriteLine("Create diectory successfully!");
}
}
using System.IO;
class DirectoryTest
{
public static void Main()
{
Directory d=new Directory("c://c#");
Directory d1;
Directory d2;
try
{
d1=d.CreateSubdirectory("file1");
}
catch(IOException e)
{
Console.WriteLine("directory fiel1 failed because:{0}",e);
return;
}
try
{
d2=d.CreateSubdirectories("file1//file2");
}
catch(IOException e)
{
Console.WriteLine("directory file2 failed because :{0}",e);
return;
}
Console.WriteLine("Create diectory successfully!");
}
}