output by the first chars. when the output file exist, do not regenerate.