ascii code is fine, but too slow. scan is slow when file size is large and there are too many scans and skips