So this is probably horribly inefficient but I am trying to find a way to build list of files in a directory (Their are 10's of thousands), I abstract information from that file, than I build a cache file so that I will only check NEW files for this information.
What I am doing right now is in the Properties.Settings.Default.FileCache I have a String Collection and I am running through my application like this
Parsing Process:
1- Iterate through all folders and folders to build file list
2- Reload cache file and compare (Explained later since it probably makes more sense to explain how I am building it in the first place before I explain how I am comparing)
3- Parse the information I want from new files
4- Properties.Settings.Default.Add (FileName + "|" Information1 + | Information2)
Reloading Cache and comparing:
1- Split three values into a List
2- If the File Exists on the Cache List I remove it from the New List
3- For any remaining files I go to STEP 3 above.
This seems horribly inefficient. But I am new to C# and it is the only method I have come up with so far.