C programing help with file precessing

Discussion in 'C' started by sourabhsinha, Sep 4, 2010.

  1. sourabhsinha

    sourabhsinha New Member

    Joined:
    Sep 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,
    I have a test file which looks like following

    -------------------------------------------------
    file has fruits :: apple orange banana |
    23 16 7 |
    -------------------------------------------------
    means it has 23 apples, 16 oranges and 7 banana. What I want is to,
    store the fruit names and their respective numbers in a matrix or fruit names in an 1D array and numbers in another 1-D array so that I can pull particular info when ever I need.

    Can you guys help or at least suggest how should I proceed?

    Thanks
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice