I'm really new to C, so sorry if this is a dumb question but let's say I have a file containing the following:
1 abc
2 def
3 ghi
If I pass in an integer like 3 (Or character?) the function will return a string of "ghi". I don't know how to make this happen.
void testFunc(int num)
{
        FILE *fp;
        fp = fopen("testfile.txt", "r"); 
        if(strstr??????
}
Yea.. I have no idea what I'm doing. Can anybody offer any guidance?
 
     
     
     
     
    