writing to a csv or fixed format text file.

G

Guest

Hi,

I have some data that I want to write to either a fixed width text file, or
to a csv file. (User selectable)

I can google and see heaps of good code on how to read a csv or fixed width
file, but nothing on writing.

Can anybody point me in the write direction on this.

Thanks
 
R

Rory Becker

Hello NoSpamMan,
Hi,

I have some data that I want to write to either a fixed width text
file, or to a csv file. (User selectable)

I can google and see heaps of good code on how to read a csv or fixed
width file, but nothing on writing.

Can anybody point me in the write direction on this.

I use FileHelpers.com
 
G

Guest

I have had a look at it, and can see how to write a string to the file.

Is there a way to created the fixed format string and then write to the file
via the streamwriter ?


Hi,

I have some data that I want to write to either a fixed width text file,
or
to a csv file. (User selectable)

I can google and see heaps of good code on how to read a csv or fixed
width
file, but nothing on writing.

Can anybody point me in the write direction on this.

Thanks


Have you looked at StreamWriter?

http://msdn.microsoft.com/en-us/library/system.io.streamwriter.aspx

HTH
Jeremy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top