I'm trying to import a file that has multiple variables within it, each variable containing anywhere from 1 entry to about a hundred. so something like this:
[info]
name = Jon
number = 2
multiple_num =
5
2
4
65
78
45
I've formatted this as an .ini file and used ConfigParser to read it in, however, unless I have the multiline values indented, ConfigParser gives me errors. So the above snippit of code will give me errors, yet this one will be fine.
[info]
name = Jon
number = 2
multiple_num =
5
2
4
65
78
45
Is there a better way to do this that doesn't involve the user hand indenting every single line? Like I said, the data within some of the variables, while not enormous, would still be long enough to get annoying. Am I going about this the complete wrong way? Any help is appreciated!
Thanks,
Tyler