mpegripper
[H]ard|Gawd
- Joined
- Oct 8, 2001
- Messages
- 1,212
i have a text file that's tab spaced like so
1 8080 19.2.46.53
2 2637 19.4.55.61
how do i have my C program read this file make sure that there are no (#) in front of it and grab the data, i also want to only get the line of data for the input given when the program is started
i start the program like this
./client 2
that means i want to use the info from line 2 this time
more specifically, i'm asking how to use the strcmp function and how to parse the file
TIA
1 8080 19.2.46.53
2 2637 19.4.55.61
how do i have my C program read this file make sure that there are no (#) in front of it and grab the data, i also want to only get the line of data for the input given when the program is started
i start the program like this
./client 2
that means i want to use the info from line 2 this time
more specifically, i'm asking how to use the strcmp function and how to parse the file
TIA