1172
MS-DOS User's Reference
Comparing text files
Limitations on Comparisons
Fe
uses a large amount
of
memory
(enough
to
hold
100 lines) as
buffer storage space
to
hold
the
text
files. If these files are larger
than available memory,
Fe
will compare
what
it can load into
the
buffer space.
If
it doesn't find a match in those portions
of
the
files in
the
buffer space,
Fe
stops and displays
the
following
message:
resynch
failed.
Files
are
too
different.
For binary files larger than available memory,
Fe
compares
both
files completely, overlaying
the
portion
in
memory with
the
next
portion from disk.
All
differences are
output
in
the
same manner
as for those files that fit completely in memory.
How to Use FC
The
syntax
of
Fe
is
as follows:
For
ASCII
comparison-
fc
[/a]
[/c]
[IL]
[lLb
n]
[In]
[It]
[/W)[/nnnn)fi/enamel
filename2
For binary
comparison-
fc
[Ib]
[/nnnnn)filenamelfilename2
The
filenamel
option specifies
the
first file
or
set
of
files that you
want
to
compare, while
the
filename2
option
specifies
the
second
file
or
set
of
files that you
want
to
compare.
Fe
matches
the
first
file against
the
second and reports any differences
between
them.
For example,
to
compare
two
text
files called monthly.rep and
sales.rep, you would type
the
following commarid:
fc
la
monthly.rep
sales.rep
If
you want
to
specify a
set
of
files, you simply use a wildcard as
part
of
the
filename. For example,
if
Pete and Betty
both
have files
called reportLtxt, rep0rt2.txt, and report3.txt, they might use
Fe
to
see
if
their files are identical. They
would
use
the
following
command:
fc
c:\user\pete\report?txt
\user\betty\report?txt
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[