build char map from file not count filesize before