T
troy anderson
How do you invoke System.IO.File.CreateText such that all users may have
read and write access to this file? I have tried
{
string RemoteConfigFile =
System.IO.Path.GetDirectoryName(Application.ExecutablePath) +
"\\Settings\\Remoting.config";
System.Security.Permissions.FileIOPermission FA = new
System.Security.Permissions.FileIOPermission(System.Security.Permissions.FileIOPermissionAccess.AllAccess,
RemoteConfigFile);
System.IO.StreamWriter Writer = System.IO.File.CreateText(RemoteConfigFile);
}
But it does not work.
I appreciate the help
read and write access to this file? I have tried
{
string RemoteConfigFile =
System.IO.Path.GetDirectoryName(Application.ExecutablePath) +
"\\Settings\\Remoting.config";
System.Security.Permissions.FileIOPermission FA = new
System.Security.Permissions.FileIOPermission(System.Security.Permissions.FileIOPermissionAccess.AllAccess,
RemoteConfigFile);
System.IO.StreamWriter Writer = System.IO.File.CreateText(RemoteConfigFile);
}
But it does not work.
I appreciate the help