12-2-2012, 12:07 AM
|
#17
|
FFR Simfile Author
Join Date: Apr 2006
Location: we traced the call...it's coming from inside the house
Age: 33
Posts: 8,609
|
Re: C++ fstream and arrays
I would write in a better* programming language and use regexes with capture groups to parse each line and spit out the individual elements for you
*better for non robotic beings
your regex would be something like
(\w+) \[(\d+),(\d+),(\d+),(\d+),(\d+)\]\[(\d+)\]\[(\d+)\]
(make sure to double all backslashes if your language doesn't have a way to specify to ignore them, like @" in C# and r" in python)
then you can search a line for that regex, take the match and use the contents of each match (first match will be username, second match onwards will be da numbers)
|
|
|