You need to post the input data file (zip it up first!) because the program you posted produces these errors on the three example lines you posted in your post #1.
Dml Error: at line 1
Dml error: Missing ; at line 2
Press any key to continue . . .
it works upto 10 columns.
when the column name exceeds 10
it shows "segmentation fault"
>>record->column_delim=(char**)malloc(10*sizeof(char*));
That line looks awfully suspicious of the reason for your error. It is only allocating room for 10 pointers
Last edited by Ancient Dragon; Jul 14th, 2009 at 9:05 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,950 posts
since Aug 2005