public void unpackDat( File datFile, File outFolder ) throws IOException {
		
		log.trace("Unpacking dat file " + datFile.getPath() + " into " + outFolder.getPath());
		
		InputStream in = new FileInputStream(datFile);
		
		outFolder.mkdirs();
		
		int[] header = readHeader(in);
		
		int i = 0;
		while( i < header.length && header[i++] != 0 )
			readFile(in, outFolder);
		
		in.close();
		
	}