Import issue.

Fairlight fairlite at fairlite.com
Mon Jul 1 06:34:14 PDT 2019


There's an import with r=\n as the record separation definition.

There's a line of code testing for 'not lin' if you assume 'lin' is the
import alias.

PROBLEM:  If there is a single record in the file, but the file was written
with no newline at all, filePro is reading the actual data (I can see this
with strace), but it basically says TRUE to 'not lin'.  If I manually add
a newline to the file, lo and behold, it works correctly.

Is there an elegant way to use \n as the record separator, but still let
import work on a single non-terminated record in a file, without
pre-processing the file to add a newline if one isn't there?

mark->
-- 
Fairlight Consulting
http://www.fairlite.com
fairlite at fairlite.com
(502) 509-3840


More information about the Filepro-list mailing list