%***********************************************************************************
% File name: compare_string
% Author: GunterChow
% Date: 10:36 2018/04/18
% Versions: V1.0.0
% Copyright (C) GunterChow. All Rights Reserved.
%***********************************************************************************
function[]=compare_string(path1,path2)
clc
a=textread(path1,'%s');
b=textread(path2,'%s');
len = min([length(a) length(b)]);
for i=1:1:len
flag = a{i} ~= b{i};
if sum(flag)~=0
fprintf('Error line:%d \n',i);
for j=1:1:length(flag)
if flag(j) ~= 0
fprintf('%d
',j,a{i}(j),b{i}(j));