Hey guys, another question that someone might know. I have to read a line containing three string sets needed for data of my program. However, the different strings are seperated by different amounts of whitespaces /tabs and the middle string can actually consist of several "strings" as it is the boat name. I have no idea how to go about it, as I keep thinking that if I use fgets() and find the first string, I d loose the seconds string. --> since i dont know how many whitespaces are leading the first string and cant therefore set the chars to read for a particular purpose.
Any help is really appreciated.
Cheers,
Johannes.
Attached is a sample file we were given for the assignment.
Cheers.