R
Rob
I am trying to write a program with VC++ 6.0 to read a txt file which
looks like this:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 10.155.12.1 10.155.12.188
1
10.155.12.0 255.255.255.0 10.155.12.188 10.155.12.188
1
10.155.12.188 255.255.255.255 127.0.0.1 127.0.0.1
1
10.255.255.255 255.255.255.255 10.155.12.188 10.155.12.188
1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
1
224.0.0.0 224.0.0.0 10.155.12.188 10.155.12.188
1
Then have it pull two different variables (IP Addresses) from the file
and put them as printed char's in another command line to be used with
the system() command. The end command would look something like
this...
system("route add x.x.x.x mask 255.0.0.0 y.y.y.y metric 1")
The x.x.x.x would be one IP Address obtained from the file, and
y.y.y.y would be the second. The Line in the file would be constant,
but the x.x.x.x and y.y.y.y would vary...
Any suggestions?
As always, any help is greatly appreciated.
Thanks,
Rob
looks like this:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 10.155.12.1 10.155.12.188
1
10.155.12.0 255.255.255.0 10.155.12.188 10.155.12.188
1
10.155.12.188 255.255.255.255 127.0.0.1 127.0.0.1
1
10.255.255.255 255.255.255.255 10.155.12.188 10.155.12.188
1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
1
224.0.0.0 224.0.0.0 10.155.12.188 10.155.12.188
1
Then have it pull two different variables (IP Addresses) from the file
and put them as printed char's in another command line to be used with
the system() command. The end command would look something like
this...
system("route add x.x.x.x mask 255.0.0.0 y.y.y.y metric 1")
The x.x.x.x would be one IP Address obtained from the file, and
y.y.y.y would be the second. The Line in the file would be constant,
but the x.x.x.x and y.y.y.y would vary...
Any suggestions?
As always, any help is greatly appreciated.
Thanks,
Rob