You must Sign In to post a response.
- Category: .NET
Try this code working for Read Text File and Export csv File.
This is working for me.
string path = @"D:\temp\New.txt";
string readText = File.ReadAllText(path);
Response.Buffer = true;
Response.Charset = "";
Response.ContentType = "application/text";
StringBuilder sb = new StringBuilder();
Name : Dotnet Developer-2015
'Not by might nor by power, but by my Spirit,' says the LORD Almighty.