How to read from database and write into text file with C#?
- by user147685
How to read from database and write into text file?
I want to write/copy (not sure what to call) the record inside my database into a text file. One row record in database is equal to one line in the text file. I'm having no problem in database.
For creating text file, it mentions FileStream and StreamWriter. Which one should I use?