Hi,
Can we use network path for reading the file using streamwrite function?
The below code is working fine.
string strContentsTemp, tmp;
StreamWriter objWriter;
strContentsTemp = this.TextBoxHttpFetch.Text;
tmp = "C:\\temp:\\xyz.cfg"
objWriter = new StreamWriter(SGMSDashBoardConstants.HttpFetchLocat ion );
objWriter.Write(strContentsTemp);
objWriter.Close();
objWriter = null;
Can I use
tmp="\\\\15.220.108.44\\c$\\abc\\xyz\\test.cfg" in the above code?
Please explain how to access remote files. Assume the directory is shared.
Thanks in advance.
Regards.