Search:

Type: Posts; User: gums

Search: Search took 0.00 seconds.

  1. Thread: read in csv file

    by gums
    Replies
    5
    Views
    5,278

    read in csv file

    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...
  2. Replies
    11
    Views
    2,241

    turned out there was a blank line at the end of...

    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 :)
  3. Replies
    11
    Views
    2,241

    cheers quzah, that was next on my hitlist - as p...

    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);
  4. Replies
    11
    Views
    2,241

    thanks chaps, did a bit of debugging last night...

    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...
  5. Replies
    11
    Views
    2,241

    gotcha re the sizeof(input) thanks will work...

    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...
  6. Replies
    11
    Views
    2,241

    thanks for the reply zacs7, so from what i can...

    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?
  7. Replies
    11
    Views
    2,241

    Segmentation Fault

    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...
Results 1 to 7 of 7