Results 1 to 2 of 2

Thread: Validating two files

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2007
    Posts
    27

    Question Validating two files

    I have two Unicode encoded files. Both the files look like as in like shown below

    File1
    Code:
    xvEntryID:47F92F70 8E5B46EE547C9ECE
    
    xvTo:NOTES:"Clayton N Corrao/QAE5"<CN=Clayton N Corrao/O=QAE5>
    
    xvFrom:NOTES:"Notes Admin/QAE5"<CN=Notes Admin/O=QAE5>
    
    xvDate:Thursday, 26 July 2007 20:15:44
    
    xvSubject:#12 - Message with 2 Attachments
    
    xvMsgClass:65
    
    xvX-Priority:50
    File2
    Code:
    ņ䀀xvEntryID:47F92F708E5B46EE547C9ECE
    xvTo:NOTES:"Clayton N Corrao/QAE5"<CN=Clayton N Corrao/O=QAE5>
    xvFrom:NOTES:"Notes Admin/QAE5"<CN=Notes Admin/O=QAE5>
    xvDate:Thursday, 26 July 2007 20:15:44
    xvSubject:#12 - Message with 2 Attachments
    xvMsgClass:65
    xvAttach:[microsoft powerpoint xp.ppt] [adobe acrobat 6.0.pdf]
    xvSize:621371
    ņ䀀xvEntryID:47F9306B70EA33598500A33B
    xvTo:NOTES:"Clayton N Corrao/QAE5"<CN=Clayton N Corrao/O=QAE5>
    xvFrom:NOTES:"Notes Admin/QAE5"<CN=Notes Admin/O=QAE5>
    xvDate:Thursday, 26 July 2007 20:19:55
    xvSubject:#12 - Message with 2 Attachments
    xvMsgClass:65
    xvAttach:[microsoft powerpoint xp.ppt] [adobe acrobat 6.0.pdf]
    xvSize:621447
    As some of the fields are the same in both the files, I'll have to compare only those fields against their respective values (eg:xvEntryID:47F92F70 8E5B46EE547C9ECE and so on) and return True if those fields are the same in both the files.

    I'm stuck up with this code and any kind of help is appreciated.

  2. #2
    Lively Member
    Join Date
    May 2004
    Posts
    72

    Re: Validating two files

    Hi,

    I would like to ask which is your need

    1. File1 consist ONLY 1 set of record, return TRUE if the EntryID is found in File2 and the corresponding field is same.

    OR

    2. File1 consist of x set of record (File2 may consist y records), return TRUE if ALL x records can be found in File2 and the corresponding field is same.

    OR

    3. File1 and File2 BOTH consist of x set of record, return TRUE if ALL x records can be found in File2 and the corresponding field is same.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width