Manipulating Comma Separated Value file(s) in C