lundi 14 septembre 2015

Object oriented way to validate a delimited line of a text file

I have a pipe delimited line in a text file. What is the best way to validate the line. I have a definite format for how each token in the line should be i.e for eg; say 5th item should be a date.

Could anyone help me what is the best object oriented way to achive this?Is there any design pattern to achieve this?

Thanks

Aucun commentaire:

Enregistrer un commentaire