I should search for a file with extension .ptg in a path(For example c:\ptgfiles) note: Subfolders is also there.
My all ptg files has some text is as follows:
------
There are some FFD files with extension .FFD are in H folder.
My FFD files some text as follows: (But all FFD files does not have same text, the GUID is different.)
[FileVersion]
GUID={F5C91E25-E904-4AD0-AA6A-41FD0A5A12E4}
Version=9
MarkupVersion=0
DisplayName=XML-MDB-Satzweise-nxt
FileExtension=*.xml
----
Now my requirement is:
1: Take each .ptg file and search for GUID number of ptg file (here in my example:F5C91E25-E904-4AD0-AA6A-41FD0A5A12E4) and Using this GUID, serach for exact GUID number in H folder FFD file.
If GUID is matched i have to show GUIDs and Display names in my combobox.
At the same time i have to show all ptg file paths in listbox.
I am stucked at this point. How can i do??
Give me some ideas to do.
Darma
VulpesPosted May 23, 2012, 10:50 AM
http://www.c-sharpcorner.com/Forums/Thread/173469/comparing-two-files.aspx
I'm assuming you'll be able to figure out the rest of it now you have a way of comparing the GUIDs in the files :)