Jump to content

Need help with parsing a file


ronnie3148

Recommended Posts

It will be a txt file and I need to parse it and insert it into a mysql, I know there are many parser examples out there, but half I don't understand...... this is how the file is... I'll also attach it...

 

[5/3/2011 12:37:14]: SuspectsKill: TeK_SiC	Pwn^Guandi	9mm SMG

 

I need to place the killer and the person who got killed, I don't really need the weapon if there not in the db I need to enter it..... and if they are I need it to add a kill on there name...

 

this is just some of the log.. thanks for the help!

 

[attachment deleted by admin]

Link to comment
Share on other sites

This will become a large project for you.  I suggest you read tutorials on how to assign variables and arrays, as well as how to insert/update data into a database.  nobody here is going to write it for you, but we will give you guidance on how to get where you need to go.

 

To start yourself off, learn about arrays and how to deal with the database.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.