[Question] Ini file and arrays/vectors

11/10/2011 08:05 cAddict#1
Hello,

Im having some difficulties to find answer to my problem searching googles so I decided to post a question on this forums.

lets say I have an ini file containing:
Code:
[ITEM]
ignore=32056,37010,37012,44012,59016
I want to make two functions:
- writing to ini file array/vector of ignored WORD values (each 2bytes long)
- reading from ini file to array/vector all WORD values separeted by comma

now, the problem is that i can make it works by reading ini key value as a string, then split it, then convert numbers to word values and save it as an array but I am having a feeling that this is going all the way arround.

Is there any more sufisticated way to make it works?
11/10/2011 10:52 warfley#2
Well i wont use an ini file, just a simple text file, and read it line per line and split each line
A multidimensional array or a structure/record would be a good solution to save the values