>I forgot to change the title. Ignor that.
>sherry
Good because fgets has a bug with long lines (8192 as I remember).
Memo fields are ignored-skipped with 'appen from', 'copy to' commands.
alines comes to mind at first but would fail on long strings too.
You might choose one of multipl ways :
1) Create a cursor with n columns each c(250) -n could be calculated as :
ceiling(Fsize(YourTextFile)/Occurs(chr(13),FileToStr(YourTextFile)))
append from type sdf
scan..endscan to process
2) Directly process with lowlevel using fread() (my preference)
3) Create a cursor with one memo field
append memo from yourtxt
process memo
4)FileToStr() and process string
etc
Cetin