How to create .txt file in local from server in c# ?

Posted by Kasani007 under C# on 4/26/2017 | Points: 10 | Views : 275 | Status : [Member] | Replies : 0
I want a txt file that is to be created in local from server

for local i have code i.e.,

strURL="www.hostingsite.com";
FileStream fs1 = new FileStream("G:\\somefile.txt", FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter writer = new StreamWriter(fs1);
writer.Write(strURL);
writer.Close();

the code above is run in local,

but i need file to be saved in local, if it runs in server




Responses

(No response found.)

Login to post response