asp.net - Fastest and efficient way of creating file in .NET -
I have an array list containing 30000 items, what is the best way to create a text file on a fly from an ASP Is the page Currently I am using the code below, but I am repeatedly excluding it with larger data,
new file stream (sFileName, FileMode.Create, FileAccess.Write ) As file author using the FileStr as the new StreamWriter (fileStr) author. WriteLine ("Error Message") for D as integer = ar.Count - 1 to author. WriteLine (ar (d). Ostring ()) sErrMsg + = "& lt; tr> & lt; / gt; Next author. Close () Close the use of Android File Protection () Using Ending
SErrMsg seems to be a string variable you actually want to change it into stringbuilder.
Comments
Post a Comment