Strange behavior with IMPORT

Jean-Pierre A. Radley appl at jpr.com
Sun Aug 18 14:20:15 PDT 2013


Boaz Bezborodko propounded (on Sun, Aug 18, 2013 at 04:17:51PM -0400):
| I am trying to import a file and it's giving me weird results.  I import 
| using the following command:
| 
| IMPORT ASCII ord=(File_Location{"INBOUND\ "{ae) R=\r F=, O=" C="
| 
| The file I am getting is a little strange in that it has CR at the end 
| of each line except the last.  What is happening is that when Filepro 
| reads the last line then 'ord' is populated with data, but 'not ord' 
| shows as true.
| 
| If I check for 'not ord' to break out of the import loop then the last 
| file is not processed.  If I let it go through then Filepro keeps 
| reading the last line over and over with each loop.
| 
| I can save the data from the last line and check against that to break 
| out, but is this a bug?

Can't you just append a CR at the end of the file, game over?

-- 
JP


More information about the Filepro-list mailing list