Question: Can you help with building a C + + program for file comparison. That can be efficient and work with large files. requirements: 1 .
Can you help with building a C program for file comparison. That can be efficient and work with large files.
requirements:
the program should open two files that can ignore line breaks
the program should run through the files and identify difrences or if same
the program should print out the line and column for location purposes
the program should give error if one file is longer or shorter than the other file
the program should countinue running to countinue looking for diffrences if it encounters one
the program should print where the issue has appeared in the text
the program can countinue checking after the diffrence line of characters is presented unless there is a better way
Example file Is much more complex:
abcabcabcabcabcabcabcabcabcabcabcabc
Example file Is much more complex:
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
abc
Wanted output of program or something close to this:
if same:
filetxt and filetxt are identical.
if diffrent:
filetxt and filetxt are diffrent.
Occurance :
filetxt has an occurance at line: # column: #
Diffrence present in:
filetxt has an occurance at line: # column: #
Diffrence present in:
if diffrent:
filetxt and filetxt are diffrent.
Occurance :
filetxt has an occurance at line: # column: #
Diffrence present in:
filetxt has an occurance at line: # column: #
Diffrence present in:
etc.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
