file length determining process -- print error messages