what I want to do is I have two txt files named as number.txt and numAndName.txt
In number file it contains only one character and it is a number.
IN numAndName file it contains both number and Names as follows
5 name5
4 name4
3 name3
2 name2
1 name1
then what I want is to open both files and get the name from numAndName file corresponding to the value in the number file. If number file contains 3, out put must be name3
I have up to fopen();
but I cant split the text from white spaces and also Its very confusing that how to go to the next line.
Please help...