>>>If you know the length of the record (which you should) take the size of the incoming file and divide it by the record length. This will give you # of records.
>>
>>All lines have a different length. :(
>
>EEEWWWW!!!!! Icky-Poo!!!!! Variable length input records!!!!!!
>
>That DOES put a tad bit of a challenge on it, doesn't it. And everything else I can come up with involves knowing record length.
>
>Can you work with an 'average' length?
No, but Winfried's solution seems to be the way to go.
The reason the file has various length for each line is because the scanner program, depending on what the user scan and other factors, will result in different information being stored.
On the Visual FoxPro side, following a certain naming convention, we then know what to do with each line when importing them.