This is my code.
When i execute this code, it throws "Access to the path "somepath" is denied."
What is going wrong.
Thanks,
Srinivasan R.
When i execute this code, it throws "Access to the path "somepath" is denied."
Code:
FileStream file = new FileStream(filePath, FileMode.Create, FileAccess.Write);
StreamWriter sw = new StreamWriter(file);
try
{
sw.Write(vendorInfoStr.ToString());
}
Thanks,
Srinivasan R.
Comment