I have a text file called sampl1.txt. This is what is inside this text file:-
111
112
113
114
115
I have a .ini file called config_num.ini which contains:-
[num_group]
file = sample1.txt
Here is the code snippet:-
import ConfigParser
config = ConfigParser.ConfigParser()
config.read('config_num.ini')
sample = config.get('num_group','file')
print sample
Is there any way to parse this so that when I read this 'file' and try to print it, it prints the elements which are in the txt file? Right now it prints sample1.txt. I want the numbers to printed.