>The 320 record is made into
>254 and 66
>
>m.buffer = FGETS(gnOrigin)
>? LEN(m.buffer)
>
>Any idea why FGETS() is doing an invalid partition of my record?
It's default value for the FGETS() second parameter. Change it to the value bigger than max lenght of the record
m.buffer = FGETS(gnOrigin, 512)
--sb--