Results 1 to 6 of 6

Thread: Is ther any way to compare two text files

  1. #1
    Join Date
    Oct 2010
    Location
    Bangalore
    Posts
    14
    Qt products
    Qt4 Qt/Embedded

    Default Is ther any way to compare two text files

    Hi,
    Is there any way to compare two text files in Qt and get the difference or unique data in each file?

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is ther any way to compare two text files

    There is a number of algorithms for comparing data sets. Google for "diff+algorithm".
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Is ther any way to compare two text files

    what about in Qt,,can we check in Qt??
    Quote Originally Posted by wysota View Post
    There is a number of algorithms for comparing data sets. Google for "diff+algorithm".

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is ther any way to compare two text files

    What do you mean "in Qt"? An algorithm is an algorithm, it doesn't care what environment you implement it in.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Is ther any way to compare two text files

    Kdiff3 is possible to check file comparison in qt??
    Quote Originally Posted by wysota View Post
    What do you mean "in Qt"? An algorithm is an algorithm, it doesn't care what environment you implement it in.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is ther any way to compare two text files

    KDiff3 is an external program. If you want to use it to compare files then of course you can do that. If you mean something else then I don't know what it is.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. The following user says thank you to wysota for this useful post:

    iswaryasenthilkumar (28th April 2015)

Similar Threads

  1. problem with reading text files
    By Axsis in forum Newbie
    Replies: 1
    Last Post: 25th April 2008, 12:29
  2. Checksum generation (used to compare two or more files)
    By comlink21 in forum Qt Programming
    Replies: 2
    Last Post: 22nd August 2007, 08:28
  3. how to save sequences of text files and sound files
    By nagpalma in forum Qt Programming
    Replies: 8
    Last Post: 3rd July 2007, 00:06
  4. is ther any function which use int 8 bytes
    By jyoti in forum General Programming
    Replies: 3
    Last Post: 12th December 2006, 10:45
  5. Parsing of Text files in Qt
    By shailesh in forum Qt Programming
    Replies: 3
    Last Post: 21st April 2006, 15:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.