Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

yeah

Name: Anonymous 2009-08-11 12:09

I have a programming dilemma.
I want to take a text file full of hashes, email addresses and passwords, parse it, then put it in a new format. The format at the moment is email:md5hash::password. I want to use the boost regular expression library to change it to just email:password. This much will probably be pretty easy. But how should I go about handling the content from the file? I thought I should store the hashes in a multi-dimensional array, rather than in a string, so I can just use a for loop to check every line in the array and convert the hashes. But apparently multidimensional arrays are always defined as const. So there will probably be problems copying over from the file.

How would you do it?

Name: Anonymous 2009-08-11 12:13

if you can't do this then you need more practice, like doing the exercises in the programming book you're using.

Name: Anonymous 2009-08-11 12:16

I'd use FIOC

Name: Anonymous 2009-08-11 12:20

I'd use sed

Name: Anonymous 2009-08-11 12:26

i'd use java

Name: Anonymous 2009-08-11 12:28

cut -s -f1,4 -d:

Name: Anonymous 2009-08-11 12:29

i'd use turbo pascal

Name: Anonymous 2009-08-11 12:54

But apparently multidimensional arrays are always defined as const.

Name: Anonymous 2009-08-11 17:01

SICP

Name: ( ≖‿≖)  2009-08-11 17:05

( ≖‿≖) 

Name: Anonymous 2011-02-04 15:55

Don't change these.
Name: Email:
Entire Thread Thread List