Re: validating the comma separated value message in C++



On Tue, 04 Jul 2006 15:29:00 -0400, Joe Wright
<joewwright@xxxxxxxxxxx> wrote:

Nishanth wrote:
I want to know how to validate a string which is comma separated

"C1","2","12344","Mr","John","Chan","05/07/1976".........


I need to validate each field value against a set of rules, for example

checking if the string is a character or a numeric value, for the
length of the character etc.

It looks like a .csv file to me. That's Comma Separated Value. Lots of
programs write files like this, dBASE, Clipper, FoxPro, Access, Excel,
etc. If you have a set of rules, please share.

http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm

rossum

.