Posts: 2,220
Threads: 154
Joined: Jul 2009
Reputation:
0
Hello,
I want to get a certain string out a file. For example: a Player Name. How do I do this with dini? I tried: dini_Get, dini_Int (and I was ensured it wouldnt work cause it is 'integer'). What do I need to use?
Regards, Jochem
Posts: 1,028
Threads: 45
Joined: May 2009
Reputation:
0
If it's a .ini-file use dini_Get. If not, store the whole file in a string, and then use strfind to find the value you are looking for. Anyway i think the strfind sollution is no real sollution, if it's a .ini file, really use dini_Get.
Posts: 2,220
Threads: 154
Joined: Jul 2009
Reputation:
0
Can you show me how to check for an empty key?
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
if(isnull(stringVar))
returns false if the string contains more than \1 and \0 (empty space and null)
returns true if the string is empty (contains only space and/or null)
Posts: 2,220
Threads: 154
Joined: Jul 2009
Reputation:
0
Really, what is wrong in that? I also tried it with a variable, giving errors...