using System;
using System.Net;
using System.Security.Permissions;
[assembly: ReflectionPermission(SecurityAction.RequestRefuse, Unrestricted = true)]
class MainClass
{
public static void Main()
{
FileIOPermission fileIOPerm = new FileIOPermission(FileIOPermissionAccess.Write, @"C:\Data");
fileIOPerm.Demand();
}
}