using System;
using System.Security;
using System.Security.Permissions;
class MainClass
{
publicstaticvoid Main()
{
FileIOPermission fileIOPerm = new FileIOPermission(FileIOPermissionAccess.Write, @"C:\Data");
Console.WriteLine(SecurityManager.IsGranted(fileIOPerm));
}
}