/* 
 * KkkgUae.java
 * szimmetrikus szövegfile-összehasonlító program (:SorOlvasó-val)
 * by pts@fazekas.hu at Sun Apr 22 20:18:33 CEST 2001
 * további doksi: a README-ben és e file legkülső class-ának fejkommentjében
 *
 * Kincskereső Kisgömböc (C) Early May 2001 by eNTitánok (Rév Szilvia,
 * Szabó Péter <pts@inf.bme.hu>, Szurdi Miklós, Weizengruber Attila).
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or   
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package eNTitanok.kkkg;
import eNTitanok.util.Hason;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * Szimmetrikus szövegfile-összehasonlító program. :SorOlvasó-val.
 */
public class KkkgUae {
  public static void main(String argv[]) {
    System.err.println("Kincskereso Kisgomboc Prototipus, 2. verzio\n(C) Spring 2001 by eNTitanok. http://www.inf.bme.hu/~pts/entitanok/\nTHIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!\n");
    if (argv.length!=2) {
      System.err.println("Ket naplofile/ellenorzofile nevet varom parameterkent.");
      System.exit(2);
    }
    boolean nem=false;
    try {
      boolean b=Hason.hasonlit(argv[0], argv[1]);
      if (b==false) {
        nem=true;
        System.out.println("kulonboznek");
      } else System.out.println("megegyeznek");
    } catch (IOException e) {
      System.out.println("I/O hiba: "+e);
      nem=true;
    }
    System.exit(nem?1:0);
  }
} /// class KkkgUae