HighTechTalks DotNet Forums  

Re: Stream writer in c#

Dotnet Framework microsoft.public.dotnet.framework


Discuss Re: Stream writer in c# in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Girish Bharadwaj
 
Posts: n/a

Default Re: Stream writer in c# - 09-20-2004 , 08:00 AM






I am not sure but if you want to use stuff across the network, I think you
need to make sure that you FileIOPermission for those directories and file.
Check out: http://www32.brinkster.com/srisamp/netArticles/article_11.htm
Also, Can you try it out and let us know?
--
Girish Bharadwaj
http://msmvps.com/gbvb
"Kiran" <kiran_rallabandi (AT) yahoo (DOT) com> wrote

Quote:
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.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.