Dini to SQLite converter.... Does it exist?
#1

I've got a nice register and login system going with SQLite. At the moment its in very early stages, so i wont be converting jsut yet since im developing more functions and commands to work with the new database and account system.

Anyway...

I'm wondering if there is any dini to SQLite conversion, i tried searching for dini to sqlite, found nothing useful.

So if there isn't such a converter out there. How would i do it?

I'm needing to get the name of each ini file. For example.

[sLK]Outbreak.ini i would need to only get the name, then add the name to the database along with the information contained within the file.

So, are there any methods where i could start up a simple gamemode with a function to check a specified folder.

Inside the folder will be 15k + ini files. So im guessing it'll take some time to fully convert them. But how could i get the name of the ini file without needing to input any name or information, or connect to the server with each name?


EDIT:

Just experimenting i managed to find a way that it is possible.. The only draw back is it requires me to input every single account name into the gamemode.

pawn Код:
FileNames[][] =
{
  "[sLK]Outbreak",
  "Outbreak"
};
Then i create a function, and format a string to match the path of the file and loop through FileNames checking for the name of the file within the specified directory.

If all else fails i will do it that way. But I'm hoping theres another way where i can create a function to get the file names automatically
Reply


Messages In This Thread
Dini to SQLite converter.... Does it exist? - by Outbreak - 29.11.2009, 20:35
Re: Dini to SQLite converter.... Does it exist? - by Finn - 29.11.2009, 21:07
Re: Dini to SQLite converter.... Does it exist? - by Outbreak - 29.11.2009, 21:14
Re: Dini to SQLite converter.... Does it exist? - by Outbreak - 30.11.2009, 14:47
Re: Dini to SQLite converter.... Does it exist? - by Zeex - 30.11.2009, 15:35
Re: Dini to SQLite converter.... Does it exist? - by Outbreak - 30.11.2009, 16:05
Re: Dini to SQLite converter.... Does it exist? - by Zeex - 30.11.2009, 16:38
Re: Dini to SQLite converter.... Does it exist? - by Outbreak - 30.11.2009, 17:08
Re: Dini to SQLite converter.... Does it exist? - by mprofitt - 30.11.2009, 17:14
Re: Dini to SQLite converter.... Does it exist? - by Outbreak - 30.11.2009, 17:19

Forum Jump:


Users browsing this thread: 5 Guest(s)