Thanks for the posted code. It gives me some ideas for some of the (non-tested so far) code I'm working on. One of my goals is to keep everything in one (preferable) or two functions for both reading and writing CSV format.

My approach has been a byte-by-byte read with a several boolean control variables to control whether we are at the end of a field or record, and to toggle quote mode on or off.

The writing (CSV data) part is easy. Though I haven't tested that, I think I can get it down to about fifteen lines code or less.

I'll post tomorrow after doing some testing and debugging.

NMM

[ 08. May 2003, 13:36: Message edited by: New Mexico Mark ]