Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

1900 text files, need to import into db

Title pretty much says it all.

I have about 1900 .txt files ranging from 120.0000 to 2 million lines each. They all say the same thing about a game character, but the structure is different.

Example: they all contain ID, playername, player item a to z and experience

But for somehow in a different order.

Any ideas?
Split the files into smaller sizes first off.
I can help, but you need to post a few lines of each.
(Feb 12, 2020 01:14 PM)c00lkid66 Wrote:  I can help, but you need to post a few lines of each.

Hey, i am on windows if that makes a difference.

The mysql database is a remote connection.

If you could help me with just email:password then that would save a lot of time. I could just upload the gamedatafiles manually.
Do you have API's for that, or just a bare mysql connection?
(Feb 9, 2020 01:49 PM)DivineProgramming Wrote:  Title pretty much says it all.

I have about 1900 .txt files ranging from 120.0000 to 2 million lines each. They all say the same thing about a game character, but the structure is different.

Example: they all contain ID, playername, player item a to z and experience

But for somehow in a different order.

Any ideas?

Would you be able to provide a little more information, please?
For example, can we see a couple of the different structures that you mention?
I wrote a python script for this. Thanks for the tips thougj


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by Shellcode™Dec 18, 2022 01:53 PM 4 211 Dec 18, 2022 01:53 PM
Last Post: Dialog
[PHP] by RayGenWurmMar 4, 2019 06:53 PM 7 240 Mar 4, 2019 06:53 PM
Last Post: ChaoticHaze
[PHP] by ๖ۣۜCitizen Z / NapalmMay 6, 2016 02:42 AM 3 131 May 6, 2016 02:42 AM
Last Post: ๖ۣۜCitizen Z / Napalm