我使用FC命令來比較兩個文件的內容,我的程序工作正常,但我需要讓它忽略一些特定的字符,如?在一些地方,如果有人可以幫助...這將是爐排...對XML文件比較Java
問候
public void runSystemCommand(String command) {
try {
Process proc = Runtime.getRuntime().exec(command);
BufferedReader inputStream = new BufferedReader(new InputStreamReader(proc.getInputStream()));
BufferedReader errorStream = new BufferedReader(new InputStreamReader(proc.getErrorStream()));
String strLn = "";
// reading output stream of the command
while ((strLn = inputStream.readLine()) != null) {
System.out.println(strLn);
}