I have a comma delimited flat file with data that needs to be sorted and placed in different files. The raw data has to be sorted on the 9th column that says either "Yesâ or âNoâ.
In the raw data, each record ends with a âZâ (zee in double quotation mark).
How do I read each record and move it to another notepad file if the 9th column meets the criterion using
VB dot net - 2005? Is it even possible?
Below is a sample of the file (the first record begins where it says 11335 and the second record begins where it says 11340:
"11335","11","11 Letter","areth","2008-07-03 22:58:13","161052","62465","7250","YESâ, SUPERVISOR- John","70","","229","8.49","229","0.00","4.50","0. 00","BMCVRTF","kanet","WXFT00","PLXZS","OT","99999 ","UG","","(999) 999-9999","1-800-999-9999","","MR CASPER","Leslie Ave","Unity","BG","999 999","","229","22931.71","0.00","0.00","0.00","0.0 0",
"0.00","0.00","0.00","1399","","","","","","", "",
"","","","","","","","","","","","",
"","","Z""11340","11","11 Letter","agrms","2008-07-03 22:58:13","161052","62465","7250","NO",SUPERVISOR- MAy"70","","229","8.49","229","0.00","4.50","0.00" ,"BMCVRTF","kanet","WXFT00","PLXZS","OT","99999"," UG","","(999) 999-9999","1-800-999-9999","","MR CASPER","Leslie Ave","Unity","BG","999 999","","229","22931.71","0.00","0.00","0.00","0.0 0","0.00","0.00","0.00","1399","","","","","",""," ","","","","","","","","","","","","","","","Z "