Dear Sir
I want to get the code to save a text file at desired path in ASP.net using C# and i am using SQL server 2012 .
Thanx
You can refer this code for write the text in c#
FileStream fs1 = new FileStream("D:\\Yourfile.txt", FileMode.OpenOrCreate, FileAccess.Write); StreamWriter writer = new StreamWriter(fs1); writer.Write("Hello Welcome"); writer.Close();
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.