Questions tagged [file-comparison]

File comparison is the act of comparing one file's properties with another's.

Use this tag for questions related to comparing the size, content, etc. of two or more files.

161 questions
0
votes
3 answers

Comparing two text files and subtracting respective values

I have 2 text files default.txt and current.txt. default.txt: ab_abcdefghi_EnInP005M3TSub.csv FMR: 0.0009 FNMR: 0.023809524 SCORE: -4 Conformity: True ab_abcdefghi_EnInP025M3TSub.csv FMR: 0.0039 FNMR: 0 SCORE: -14 Conformity:…
Matt
  • 171
  • 3
  • 13
0
votes
2 answers

DOS batch program for file comparison

I have two text files , file1 and file2. I want to identify which lines in file2 are not there in file1. How can I do this using a DOS batch file?
summer
  • 139
  • 1
  • 10
0
votes
1 answer

Batch file check if file overwrote properly

I need to save a file by copying it to a .bak in a batch file. I then need to check if my file overwrote properly the existing .bak. Simply comparing the files could not be working, as it is possible for the user to save it twice in a row with no…
Guillaume Chevalier
  • 9,613
  • 8
  • 51
  • 79
0
votes
3 answers

Comparing two files in batch script

i am trying to compare two files in the manner, each line of file 1 will be compared with every line of file 2 and if no match is found, write that line to a seperate file. Below is the code i wrote but it is not working as expected, @echo on cd…
user1495791
  • 1
  • 1
  • 1
  • 1
0
votes
2 answers

Comparing files in two folders using batch script

I have to compare the file in two folders which have file names like folderA: [a.f90, b.f90, ...] folderB: [a_recoded.f90, b_recoded.f90, ...] I wish to compare a.f90 in folderA with a_recoded.f90 in folderB. what is used is: @echo off set…
Thiru
  • 3,293
  • 7
  • 35
  • 52
0
votes
1 answer

Comparing two uploaded files

i want to compare two uploaded files and display the strings that are same in the two files inform of percentage but i dont know how to handle it. Any help is highly appreciated. below is my upload form.

Choose files to be compared

Richmahnn
  • 87
  • 2
  • 11
0
votes
3 answers

Ant task to compare two properties files

Does anyone know of an Ant task that would compare two (Java) properties files? I could not find any but I would like to be sure before I go off and implement it. Input: two properties files Output: list of property keys that are in one file but…
Neeme Praks
  • 8,956
  • 5
  • 47
  • 47
0
votes
1 answer

file comparison with memory consideration

I want to compare two files, one is in file system and the other is being downloaded from a HTTP URL. We have tried to compare by byte[] arrays (we used HTTPRequestBuilder by Apache), but the concern is that the files may be too large and they may…
Ahmad
  • 2,110
  • 5
  • 26
  • 36
0
votes
1 answer

Cross-platform network binary file comparison in C?

Is there an existing library or codebase that is cross platform (Windows/Linux/OSX or a segment thereof) that would allow me to quickly compare the differences between two files over a network? Basically, trying to recreate a basic version of…
Fmstrat
  • 1,492
  • 2
  • 17
  • 24
0
votes
1 answer

Extending SVN to handle files within ZIP or other file types

I've been editing some nuget packages that are under SVN for the past few months now. Is there a way to extend SVN so that when you try to compare changes from one file version to the other, it handles files within zip files? Nuget packages are…
PedroC88
  • 3,708
  • 7
  • 43
  • 77
0
votes
4 answers

Comparing some data of a file with another file in python

I do have a file f1 which Contains some text lets say "All is well". In Another file f2 I have maybe 100 lines and one of them is "All is well". Now I want to see if file f2 contains content of file f1. I will appreciate if someone comes with a…
Sara
  • 585
  • 7
  • 12
  • 22
0
votes
1 answer

In Visual Studio 2010 Folder Difference window, when I right click on file the "Reconcile" menu is disabled

I'm trying to compare 2 local folders. In source control explorer I right click folder, click "Compare" menu and select the target folder. The Folder Difference folder is displayed. I right click the file where the difference is found but the…
0
votes
4 answers

Matching array columns in python

I have two files with the following contents below.My question is ,in the below shown code if id matches in file1 and file2 then how to match the second column in file1 and the corresponding second column in file2 till n columns.. def…
Rajeev
  • 44,985
  • 76
  • 186
  • 285
0
votes
2 answers

Java FileUtils copy backup directory

i'm using FileUtils of Commons.IO and i'm trying to create a backup script, the simple rules is to copy from source to dest directory all files (and subdirs) that don't exist in dest or if source has a lastmodified date newer than other. I can not…
Tobia
  • 9,165
  • 28
  • 114
  • 219
-1
votes
2 answers

How can two CSV files with the same data but different column orders be validated in Java?

I am trying to compare two CSV files that have the same data but columns in different orders. When the column orders match, the following code works: How can I tweak my following code to make it work when column orders don't match between the CSV…
ychaulagain
  • 73
  • 1
  • 8
1 2 3
10
11