Good afternoon people, I need your help,
I am trying to write a script that will open my file with the network data and modify it.
My progress so far:
1- I opened the file and it reads each line and asks if you want to modify it:
Variable1 = open(’/path/… la interface que el usuario escriba)
for Variable2 in Variable1:
#Ask to change any value in the configuration file)
Variable3 = input('Modify: ’ + Variable2 + ’ Y/N: ').capitalize()
if Variable3 == ‘Y’:
input(‘Type the new value’)
print(‘Value not changed’)
I don’t know how to continue. I need what the user types, to modify the value of that line in that file. Any ideas?