Kerry,

1. Loop round reading a line at a time and interpreting the columns. You want to store the 3 columns into variables - sex, age and tattoo_count.
fscanf is good for this - do a "man fscanf"

2. Check the sex for values other than M or F. What about lower case m or f ?

3. Storing the answers in an array. Not sure if this is a great idea - how many lines could the file contain ? How do you know ahead of time how big the array needs to be ?

4. I would just copy the answers straight to their destination without storing them.

HTH,

John


Reply via email to