File (a portion of it)
so for the first line read I have a variable called var containing Server_port and a variable called val containing 8888. From these I need to create a variable called Server_Port with the value 8888 for
f = open("c:\\myprog\\progdata.txt","r")
r = f.readlines()
for line in r:
var, val = line.split(), line.split()
In this case its an INI file, but not always, I don't want to have to list *all* the possible variable names within the prog itself so a dynamic method is preferable.
server = HTTPServer((' ', Server_Port), RequestHandler)