public static void main( String[] args ) throws MVDException
	{
		if ( args.length == 1 )
        {
            File file = new File( args[0] );
            File[] files = file.listFiles();
            try
            {
                for ( int i=0;i<files.length;i++ )
                {
                    FileInputStream fis = new FileInputStream(files[i]);
                    byte[] data = new byte[(int)files[i].length()];
                    fis.read( data );
                    fis.close();
                    System.gc();
                    long mem2,mem1 = Runtime.getRuntime().freeMemory();
                    long time2,time1 = System.nanoTime();
                    String dataStr = new String(data,"UTF-8");
                    char[] chars = new char[dataStr.length()];
                    dataStr.getChars(0,chars.length,chars,0);
                    SuffixTree st = new SuffixTree( chars, false );
                    mem2 = Runtime.getRuntime().freeMemory();
                    time2 = System.nanoTime();
                    Entry e = new Entry( files[i].getName(),
                        (int)files[i].length(),(time2-time1)/1000,mem1-mem2);
                    appendEntry( e );
                }
            }
            catch ( Exception e )
            {
                System.out.println(e.getMessage());
            }
            Entry e = entries;
            while ( e != null )
            {
                System.out.println(
                    e.file+"\t"+e.size+"\t"+e.time+"\t"+e.space);
                e = e.next;
            }
        }
        else
            System.out.println("usage: java edu.luc.nmerge.graph.suffixtree <dir>\n");
	}