Java network programming
hi,
Im building a network tool, where Im invoking the native methods in windows to get command prompt to "tracert <ip>".
I get an output like this,
Tracing route to [10.0.2.2]
over a maximum of 3 hops:
1<1 ms<1 ms<1 ms 192.168.1.1
2822 ms809 ms 1383 ms 220.247.232.7
3 1049 ms 1203 ms 1267 ms 10.0.2.2
Trace complete.
-
I saved this in a text file for manipulating the strings and get the "hop number" & the "IP". this result will go to a database.
ex: Hop No IP
1 192.168.1.1
2 220.247.232.7
you'll see this is a very very hard job, to filter out the hop No & IP from this file
Do you guys know any other good easy method to get this thing done. I'm kinda new to JAVA, so please help.
p.s I just saved this to a text file only for testing purposes, in the actual program I'll be gettig loads of results like this and saving all of them as a text file isnt the best option.. :)
Regards,

