hi
im having a bit of a problem with a task i have.
i have 2 csv files in which a list of countries and data is stored, ive managed to read the first csv into an array without a problem, the...
Type: Posts; User: gums
hi
im having a bit of a problem with a task i have.
i have 2 csv files in which a list of countries and data is stored, ive managed to read the first csv into an array without a problem, the...
turned out there was a blank line at the end of my text file i was reading in....d'oh!!
thanks for all ur help...i'll be back :)
cheers quzah, that was next on my hitlist - as p is a pointer to the start address of the array can i just reference it like
printf("Value of p:%s\n",p);
thanks chaps, did a bit of debugging last night and it appears the seg fault is happening earlier than i thought at this line
strcpy(countries[i].countryName, p);
didnt have a lot of time...
gotcha re the sizeof(input) thanks
will work some debugging messages into various places of my code to try and ascertain exactly where the seg fault is happening.
does this portion of code look...
thanks for the reply zacs7,
so from what i can grasp
sizeof(input)
will automatically assign a max length for the input so i no longer have to define a constant like 1500?
Hi everyone,
Just a bit of a hand with a problem thats been driving me up the wall of late if anyone would be so kind, if been set a problem of reading in 2 external csv files into my C prog and...