Results 1 to 9 of 9

Thread: [Resolved] Fastest way to comapre lines in a txt files

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    74

    Resolved [Resolved] Fastest way to comapre lines in a txt files

    i would like to know whats the fastest way to compare lines in txt files? ( assume both files have around 1 million lines ) (ya im comparing registry files)

    This is how im planning to do it atm:

    Code:
     My.Computer.FileSystem.ReadAllText(BOTH FILES)
    
    Put all text from file 1 & from file 1 into array:
     Dim array1() As String
     array1 = Split(file1, vbNewLine) etc. for array2
    
    Loop through both arrays & compare lines:
    Last edited by goldenix; May 10th, 2008 at 12:58 PM.

    M.V.B. 2008 Express Edition

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