Topic: Counting unique lines from a parsed text file
Hey there, forums.
My current predicament is that I am parsing a log file for a website to gather information for an admin page. The log file contains the time, userid, and session-token for each login the website completes. My goal is to end up with an integer that represents the number of unique users who logged into the site on a given day. Any ideas?
Just for some additional information, we open the text file and then parse it using a regex, putting the 3 pieces of information into an array. Hope that's enough information to at least get some questions going. Thanks in advance, everyone.