how to get the data from the command
"ifconfig".
EX:
if we run the command "ifconfig" it will show the data.
something like "eth0" ,"eth1" and "lo".
these data should directly dump(mean do not copy the data into a file and r/w) in to treeview.
here i have to take 2 treeview.
treeview1 output should be,
Quote:
ifconfig (here this is the path name)
eth0(these are sub paths like a tree)
eth1
lo
|
treeview2 output should be,
the data which contains after "eth0"
Quote:
Link encap:Ethernet HWaddr 00:08:A1:90:49:46
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:23 Base address:0xa000
|