I need to write a C# program to read in a text file with following data
Name IPaddress sector department switch port
Randy 192.168.1.25 4 HR 3
Matthew 192.168.1.40 4 HR 15
Hoobert 192.168.2.6 5 CS 4
Reeve 192.168.2.11 5 CS 12
Mary 192.168.4.8 IT 9
and more on the list. and do some modification to the current list like changing the IP segment based on either condition, example base on department CS(customer service)segment has change from 192.168.2.*** to 192.168.16.*** .
secondly am require to add text among all the lines like
"set change mary at 192.168.4.8 from IT port 9 with activation.
Leave a comment