Results 1 to 9 of 9

Thread: Compare Text Files

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153

    Compare Text Files

    I'm trying to compare two text files and have the difference displayed.
    The code below displays both text files, just haven't figured out how to get what's not in either file.

    FileOpen(1, File1.Value, OpenMode.Input, OpenAccess.Read, OpenShare.Shared)
    FileOpen(2, File2.Value, OpenMode.Input, OpenAccess.Read, OpenShare.Shared)
    Do While Not EOF(1)
    Dim TextLine As String = LineInput(1)
    Response.Write(TextLine)
    Response.Write("<br>")
    Loop
    FileClose(1)

    Do While Not EOF(2)
    Dim TextLine2 As String = LineInput(2)
    Response.Write(Textline2)
    Response.Write("<br>")
    Loop
    FileClose(2)

    Or if you have a better way of comparing two text files I'm open. I'm using vb.net and running a web form.
    Thanks
    Last edited by Hutty; Sep 20th, 2005 at 11:02 AM.

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