日期:2014-05-16  浏览次数:21346 次

javajava中进行两个txt文本文档的数据对比,找不不相同的字段
关于java中进行两个txt文本文档的数据对比,查找出数据中不通的字段,
对于两个txt文本文档的数据内容如下:
1.txt:如下
System Idle Process
System
raysat_3dsmax2010_32server.exe
svchost.exe
spoolsv.exe
popwndexe.exe
snmp.exe
svchost.exe
utilty.exe
TBUpdate.exe
smss.exe
webboost.exe
svchost.exe
evtsys.exe
jqs.exe
mdm.exe
csrss.exe
winlogon.exe
SshClient.exe
services.exe
lsass.exe
svchost.exe
myeclipse.exe
svchost.exe
svchost.exe
RsMgrSvc.exe
RavMonD.exe
RavMonD.exe
svchost.exe
Energy Management.exe
svchost.exe
SysExplr.exe
jusched.exe
igfxsrvc.exe
hkcmd.exe
alg.exe
igfxpers.exe
editplus.exe
RsTray.exe
RsTray.exe
baidupinyin.exe
ctfmon.exe
wscntfy.exe
explorer.exe
BaiduHi.exe
navicat.exe
eclipse.exe




2.txt如下:
1,System Idle Process,.0.0,,,operatingSystem,running
4,System,.0.0,,,operatingSystem,running
216,raysat_3dsmax2010_32server.exe,.0.0,D:\Program Files\Autodesk\3ds Max 2010\mentalray\satellite\,,application,running
280,popwndexe.exe,.0.0,C:\Program Files\Rising\RSD\,,application,running
324,svchost.exe,.0.0,C:\WINDOWS\system32\,-k LocalService,application,running
352,utilty.exe,.0.0,C:\Program Files\Lenovo\Energy Management\, ,application,running
436,spoolsv.exe,.0.0,C:\WINDOWS\system32\,,application,running
500,Energy Management.exe,.0.0,C:\Program Files\Lenovo\Energy Management\, ,application,running
552,snmp.exe,.0.0,C:\WINDOWS\System32\,,application,running
572,svchost.exe,.0.0,C:\WINDOWS\system32\,-k imgsvc,application,running
592,SysExplr.exe,.0.0,D:\Program Files\haojie\SuperPlayer3500\, ,application,running
732,TBUpdate.exe,.0.0,C:\Program Files\Tencent\barupdate\, /service,application,running
920,webboost.exe,.0.0,C:\Program Files\Rising\RSE\,,application,running
1016,svchost.exe,.0.0,C:\WINDOWS\system32\,-k DoctorService,application,running
1188,smss.exe,.0.0,\SystemRoot\System32\,,application,running
1208,evtsys.exe,.0.0,C:\WINDOWS\System32\,,application,running
1264,jqs.exe,.0.0,C:\Program Files\Java\jre6\bin\, -service -config "C:\Program Files\Java\jre6\lib\deploy\jqs\jqs.conf",application,running
1296,mdm.exe,.0.0,C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\,,application,running
1308,csrss.exe,.0.0,C:\WINDOWS\system32\,ObjectDirectory=\Windows SharedSection=1024,3072,512 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserS,application,running
1332,winlogon.exe,.0.0,,,application,running
1376,services.exe,.0.0,C:\WINDOWS\system32\,,application,running
1388,lsass.exe,.0.0,C:\WINDOWS\system32\,,application,running
1436,svchost.exe,.0.0,C:\WINDOWS\system32\,-k "METrsptSvr",application,running
1480,eclipse.exe,.0.0,D:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in\eclipse-host-distro\, ,application,running
1512,jusched.exe,.0.0,C:\Program Files\Java\jre6\bin\, ,application,running
1560,svchost.exe,.0.0,C:\WINDOWS\system32\,-k DcomLaunch,application,running
1648,svchost.exe,.0.0,C:\WINDOWS\system32\,-k rpcss,application,running
1760,RsMgrSvc.exe,.0.0,C:\Program Files\Rising\RSD\,,application,running
1776,RavMonD.exe,.0.0,d:\Program Files\Rising\Rav\,,application,running
1800,RavMonD.exe,.0.0,d:\Program Files\Rising\RFW\,,application,running
1860,baidupinyin.exe,.0.0,C:\Program Files\Baidu\BaiduPinyin\2.0.2.133\, ,application,running
1872,svchost.exe,.0.0,C:\WINDOWS\System32\,-k netsvcs,application,running
2012,svchost.exe,.0.0,C:\WINDOWS\system32\,-k NetworkService,application,running
2068,hkcmd.exe,.0.0,C:\WINDOWS\system32\, ,application,running
2084,igfxpers.exe,.0.0,C:\WINDOWS\system32\, ,application,running
2100,igfxsrvc.exe,