I have a file loaded in a stream reader. The file contains IP addresses scattered around. Before and after each IP address there is a "\" if that helps. In addition, the first "\" in each line ALWAYS comes before the ip-address, before the first there will be no other "\".
I already know that I should use a while loop to loop through each line, but I don't know the rest of the procedure: <
For instance:
Powerd by Stormix.de \ 93.190.64.150 \ 7777 \ False
Cupserver \ 85.236.100.100 \ 8178 \ False
Euro server \ 217.163.26.20 \ 7778 \ False
in the first example I will need "93.190.64.150" in the second example I will need "85.236.100.100", in the third example I will need "217.163.26.20"
I am really struggling with parsing / splicing / dicing: s
early
*** I need to save the IP address in a string, returning bool is not enough for what I want to do.
source
share