Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 23:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Question] Ini file and arrays/vectors

Discussion on [Question] Ini file and arrays/vectors within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 6
Received Thanks: 0
[Question] Ini file and arrays/vectors

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?
cAddict is offline  
Old 11/10/2011, 10:52   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
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
warfley is offline  
Reply

Tags
arrays, c++, cpp, ini


Similar Threads Similar Threads
{QUESTION]About a certain file
09/10/2010 - Grand Chase Philippines - 0 Replies
Whenever I do dungeon runs in AOB I get DC'ed and an error messages says "Client error please restart your game and repatch" I've done it but i always encounter the same thing, can anyone tell me which specific file is concerned about this problem?
QUESTION: About .kom file!!
09/29/2009 - Grand Chase Philippines - 4 Replies
pde po b pg sabayin ung 1hit hack at xp hack..?? pareho po kc cla script.kom eh.. pde po b un..?? ngttnong lng po wala po kc ako alm s mga ganun eh >,< thx..
QUESTION..about .bat file
08/20/2009 - Browsergames - 0 Replies
what should i do if i have no router..tnx reconnecting from the net has no effect for mybrute
[Question] Argates DDS file? or any m esh/texture file?
07/25/2009 - Dekaron Private Server - 1 Replies
well as the title says i dont kno where to find the files iv looked everywhere i can think but still no joy, anyone help me out?
file question
03/15/2007 - Conquer Online 2 - 1 Replies
i downlaoded a conquer bot but its in .rar format what do i do sicne i cant work it



All times are GMT +1. The time now is 23:37.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.