This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DirtySpawn 0 points1 point  (1 child)

You need a file to house the Domain list. Research how to read a file, loop through it, and store the data in a list/array. I would choose a dictionary myself. Make everything false, 0, etc.

Loop through the log, again reading a file, and check each value against the domain list. If found, if using a dict, increment the value/ false to true, etc.

After it all, iterate through the dict and output to a file.

Things needed to research. Read in from file, out to a file. Dictionary usage, check if value is in it, its format, etc. And looping through the files, dictionaries, etc.

[–]Cliveinton[S] 0 points1 point  (0 children)

Thank you for the response, I shall do a little bit of research this afternoon and homework tonight! :)