Sanfoor Sanfoor

Sanfoor Sanfoor

  • NA
  • 6
  • 12.2k

parse text file in c#

May 2 2015 8:26 AM
i have the following text file which is marked in bold , i need to extract the ip addresses(in red) from it in c#
any help please?
 ----------------------------------------------------------------------------------
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1460
;; QUESTION SECTION:
;www.youtube.com. IN A

;; ANSWER SECTION:
www.youtube.com. 74304 IN CNAME youtube-ui.l.google.com.
youtube-ui.l.google.com. 118 IN A 213.139.46.102
youtube-ui.l.google.com. 118 IN A 213.139.46.88
youtube-ui.l.google.com. 118 IN A 213.139.46.89
youtube-ui.l.google.com. 118 IN A 213.139.46.110
youtube-ui.l.google.com. 118 IN A 213.139.46.96
youtube-ui.l.google.com. 118 IN A 213.139.46.123
youtube-ui.l.google.com. 118 IN A 213.139.46.109
youtube-ui.l.google.com. 118 IN A 213.139.46.116
youtube-ui.l.google.com. 118 IN A 213.139.46.117
youtube-ui.l.google.com. 118 IN A 213.139.46.82
youtube-ui.l.google.com. 118 IN A 213.139.46.95
youtube-ui.l.google.com. 118 IN A 213.139.46.103

;; Query time: 1151 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Fri May 01 23:56:52 EEST 2015
;; MSG SIZE rcvd: 270

Answers (1)