Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: Returning reference to object (lock loses effect?) Pin
Member 120616003-Nov-15 2:00
Member 120616003-Nov-15 2:00 
SuggestionRe: Returning reference to object (lock loses effect?) Pin
Richard Deeming3-Nov-15 2:05
mveRichard Deeming3-Nov-15 2:05 
Questionfingerprints of files Pin
Nadeem3103-Nov-15 0:02
Nadeem3103-Nov-15 0:02 
AnswerRe: fingerprints of files Pin
Garth J Lancaster3-Nov-15 0:06
professionalGarth J Lancaster3-Nov-15 0:06 
QuestionRe: fingerprints of files Pin
Richard MacCutchan3-Nov-15 0:14
mveRichard MacCutchan3-Nov-15 0:14 
AnswerRe: fingerprints of files Pin
Pete O'Hanlon3-Nov-15 1:14
mvePete O'Hanlon3-Nov-15 1:14 
GeneralRe: fingerprints of files Pin
Nadeem3103-Nov-15 19:06
Nadeem3103-Nov-15 19:06 
GeneralRe: fingerprints of files Pin
Pete O'Hanlon3-Nov-15 23:35
mvePete O'Hanlon3-Nov-15 23:35 
So, you're using this to track files that you've already tested for plagiarism, and not using this as part of the plagiarism detection itself? Basically, you're going to need to build a database of these files that consists of the path, the file length and the hash of the file. The logic works something like this:
  1. If the path does not exist in the database, you know you're going to need to check it.
  2. If the path does exist, compare the actual file length against the one you stored in the database. If it differs, you're going to need to check it.
  3. Assuming you've reached this point, you're going to have to hash the physical file and then compare it against the hash you've stored. Again, if it differs, you're going to need to check the file.
Now, what I would do if I were writing this is assign a Guid at the start of your processing - then when you add a record, or find the record in the database, you'll update it with this Guid. Once you've gone through all your files, the files that are present on your machine will be marked with this Guid in the database. Any files that have been renamed or deleted on the disk will not have this Guid associated, so you can get rid of them from your database.
GeneralRe: fingerprints of files Pin
Nadeem3104-Nov-15 18:59
Nadeem3104-Nov-15 18:59 
GeneralRe: fingerprints of files Pin
Pete O'Hanlon4-Nov-15 21:01
mvePete O'Hanlon4-Nov-15 21:01 
AnswerRe: fingerprints of files Pin
Nadeem3103-Nov-15 19:09
Nadeem3103-Nov-15 19:09 
QuestionArgument Exception was unhandled by user code Pin
Asif Zaffar2-Nov-15 20:37
professionalAsif Zaffar2-Nov-15 20:37 
AnswerRe: Argument Exception was unhandled by user code Pin
OriginalGriff2-Nov-15 21:34
mveOriginalGriff2-Nov-15 21:34 
GeneralRe: Argument Exception was unhandled by user code Pin
Asif Zaffar3-Nov-15 23:24
professionalAsif Zaffar3-Nov-15 23:24 
SuggestionRe: Argument Exception was unhandled by user code Pin
Richard Deeming3-Nov-15 1:55
mveRichard Deeming3-Nov-15 1:55 
QuestionKeyup event not getting triggerd Pin
Darshan BS2-Nov-15 2:01
Darshan BS2-Nov-15 2:01 
AnswerRe: Keyup event not getting triggerd Pin
Richard Deeming2-Nov-15 2:09
mveRichard Deeming2-Nov-15 2:09 
AnswerRe: Keyup event not getting triggerd Pin
Eddy Vluggen2-Nov-15 2:22
professionalEddy Vluggen2-Nov-15 2:22 
AnswerRe: Keyup event not getting triggerd Pin
BillWoodruff2-Nov-15 4:20
professionalBillWoodruff2-Nov-15 4:20 
QuestionHOW TO MAKE FONT CENTER Pin
Nor Amyliana1-Nov-15 17:50
Nor Amyliana1-Nov-15 17:50 
AnswerRe: HOW TO MAKE FONT CENTER Pin
BillWoodruff1-Nov-15 21:21
professionalBillWoodruff1-Nov-15 21:21 
GeneralRe: HOW TO MAKE FONT CENTER Pin
Nor Amyliana2-Nov-15 5:20
Nor Amyliana2-Nov-15 5:20 
QuestionCSV Downloading and Page Transfer Pin
Renjith Kalarikkal1-Nov-15 1:24
Renjith Kalarikkal1-Nov-15 1:24 
AnswerRe: CSV Downloading and Page Transfer Pin
Richard Deeming2-Nov-15 2:07
mveRichard Deeming2-Nov-15 2:07 
QuestionSystem.Speech.Recognition Pin
Christian 9831-Oct-15 22:21
Christian 9831-Oct-15 22:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.