[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: load config file into table
- From: Dave Collins <Dave.Collins@...>
- Date: Mon, 18 Jul 2011 14:40:50 -0400
I know this is ultra basic. It's the ultra basic stuff that messes me up.
I want to load a config file into a table. I already know the config file's name ("config.txt"). Do not know the parameters that might be in the file.
I've tried a few samples but they're either too simple or too complex for my purposes and I can't really decipher them.
This has fixed, known param names:
http://stackoverflow.com/questions/1891473/how-to-load-text-file-into-sort-of-table-like-variable-in-lua
which I do not have.
So, simply:
network = false
flyer_id = 7009
etc.
gives me a table object.
Dave Collins
Front-End Engineer
Mercatus Technologies Inc.
60 Adelaide Street East, Suite 700
Toronto ON M5C 3E4
T 416 603 3406 x 298
F 416 603 1790
dave.collins@mercatustechnologies.com
www.mercatustechnologies.com