Hi to all!
Is there a way to go and read a particular line in a text file?
For example, i have a text file like this:
15 nick
25 marcus
18 sarah
where each line contains an integer (age) and a string (a name).
I'd like to write a function which takes the line number and return the age.
For example, if a call the function with 2 so it has to return 25, because at the line 2 there is marcus who is 25.
Is it possible to find the value by using line numbers?
I have to use it in a client/server application.
The client can sends commands like FIND231 and the server has to send to it 25 18 15
Thanks a lot!