HI all,
Please help me with this.
I have a folder in C:/ProgramData
when i try to read and write a file under this location it is able to read and write here is my code
using (FileStream stream = File.OpenRead(@"C:\ProgramData\Software Toolbox\OmniServer\omnisrv.$$$"))
using (FileStream writeStream = File.OpenWrite(@"C:\ProgramData\Software Toolbox\OmniServer\omnisrv.cfg"))
{
BinaryReader reader = new BinaryReader(stream);
BinaryWriter writer = new BinaryWriter(writeStream);
// create a buffer to hold the bytes
byte[] buffer = new Byte[1024];
int bytesRead;
// while the read method returns bytes
// keep writing them to the output stream
while ((bytesRead =
stream ...
Go to the complete details ...