I have text document with this pattern:
Red fox got number1 socks: number2 and: number3
Red fox got number4 socks: number5 and: number6
Red fox got number7 socks: number8 and: number9
…
I need to extract all numberx from each line and put it in array like:
[number1,number2,number3]
[number4,number5,number6]
[number7,number8,number9]
i’m using C#.
thanks
Given the following input file:
the program prints: