473,385 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Compare two batches of text and return difference

Hi, I'm trying to figure out a way to compare two versions of the same text file from a database and to highlight the changes when viewing the text? Can anyone help me with this?
Oct 29 '07 #1
4 2298
MarkoKlacar
296 Expert 100+
Hi, I'm trying to figure out a way to compare two versions of the same text file from a database and to highlight the changes when viewing the text? Can anyone help me with this?
Hi,

this is something really complex you're trying to do, I'm not talkning about the programming.

The details of you diff can ba done in many ways, how detailed do you want to be?

Cheers
Oct 29 '07 #2
Hi,

this is something really complex you're trying to do, I'm not talkning about the programming.

The details of you diff can ba done in many ways, how detailed do you want to be?

Cheers
Okay, given file1 and file2. THey are essentially the same file but file2 is an edited version so there are differenced. I need to out put file2 with all the edits that were made highlighted (different color, italicized etc..).

Given that I've already queried the database for both files and both files are in result sets. What do I do next?

thanks
Oct 29 '07 #3
MarkoKlacar
296 Expert 100+
Okay, given file1 and file2. THey are essentially the same file but file2 is an edited version so there are differenced. I need to out put file2 with all the edits that were made highlighted (different color, italicized etc..).

Given that I've already queried the database for both files and both files are in result sets. What do I do next?

thanks
Hi,

well that's the tricky bit. You can either compare rows with eachother using stringcompare functionality, you can compare words (on the same rows) using sub-stringcomparing or you can compare characters with each other.

The choice if yours, this is quite complex as I told you.

Hope this helps, if not tell me and I'll find a way of helping you.

Cheers
Oct 29 '07 #4
Hi,
I am trying to do something similar. I was wondering did you get this working and if so, how?
Thanks a million,

thegant
Jan 13 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: jyoti | last post by:
Hi there, I am trying to compare two strings and get the differenc in vbscript. Example: Str1="This is a test text" Str2="This is a fine test text but a little long" I like to compare str1...
4
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and...
5
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
17
by: bengamin | last post by:
Hi, I have a C# class and two instance of the class; the class have some property. I want to compare the property value of the two instance How should i do? override == ? use delegate ?
5
by: Jason | last post by:
Is there a mechanism in VB.NET that allows something like: If myVar In ("A","B","C") Then... The way I'm doing it now is: Select Case myVar Case "A","B","C" Or like this:
1
by: Linda | last post by:
Hi, Is there a way to do a "text" (rather than "binary") compareison with the "like" operator, without changing the global "Option Compare" setting? I don't want to risk breaking many, many...
11
by: balakrishnan.dinesh | last post by:
hi frnds, Im having two 20digit numbers, But while comparing those it is giiving wrong ouput in javascript. for example here is my code, my secanrio is , ~ If first 20 digit number is...
4
by: Lamis | last post by:
Hi, what is the best way to compare 2 haschtables contatining objects. the objects has 2 property, name & value. I need to print out the differences -- LZ
3
by: artev | last post by:
in the default sort which is the compare function used? alphabetical ordination is so:arry.sort(); but which is the default function used? is there a good link wich example for alphabetical...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.