title: what is the best way to put resultset data into a text file?
body: <p>I want to put all the data in the resultset into a text file in the same order. Is there any method to get data in all the rows at once and write to a file or have to write it row by row?</p>