Re: Is there a way to keep the StreamWriter open?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Logging marketing data to a CSV file. We then need to massage the data, and perform a bulk insert.


"Gregory A. Beamer" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx> wrote in message news:Xns9C2D83A3DA6CDgbworld@xxxxxxxxxxxxxxxx
"Bishop" <nospam@xxxxxxxxxx> wrote in
news:1DC4274B-9BBD-44E6-90B1-004467F91476@xxxxxxxxxxxxx:


Every time some hits this page it writes a line to a text file. I
wanted to find out if I can keep the StreamWriter open to speed up the
process?


Why are you using a streamwriter to log? There are much better ways to do
that, including some "built in".

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************

.