![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Programming Guru
![]() ![]() |
I see. If there's a certain order they have to be in. That most likely implies you know which index each item is at, right? So why not use a list?
If not, you could still use a list, and make each item a tuple, containing the key and the value. Lastly. If there's a method to the order, defined by the keys. You could always make a function that sorts it out in to a list before you need to use it. |
|
|
|
|
|
#22 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
titaniumdecoy: Maybe you should have posted all of these requirements from the start. Your question has evolved from "how do I make a human-readable config file in the form foo=bar" to "how do I do that AND it must support loading tuples AND the keys must be in the specified order". We would have saved a whole lot of time if you had.
|
|
|
|
|
|
#23 |
|
Programming Guru
![]() ![]() |
Haha. I most certainly agree!
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Storing Data | crawforddavid2006 | C++ | 11 | Jun 24th, 2006 1:41 PM |
| Storing passed information into a text file | dunowhodoyou | PHP | 9 | May 8th, 2006 11:29 AM |
| Storing variables to a file? | Oddball | PHP | 2 | Mar 21st, 2006 3:09 PM |
| Storing Negative Numbers in unsigned ints | aznluvsmc | C | 9 | Aug 22nd, 2005 11:09 PM |
| Language preferences | peace_of_mind | Coder's Corner Lounge | 7 | Apr 1st, 2005 1:52 PM |