Just check the VFP Help for FOPEN() and FGETS() - the examples there should give you 99% of what you need. Just one note - since your data is in CSV format, the first "record" or line returned from FGETS() will have your table field names. If you don't need them, just discard them.
Something like:
STORE FOPEN('yourfile.csv') TO gnFileHandle
IF gnFileHandle <= 0
WAIT WINDOW 'Unable to open file!' NOWAIT
ELSE
gcString = FGETS(gnFileHandle)
DO WHILE !FEOF(gnFileHandle)
gcstring = FGETS(gnFileHandle)
Thisform.yourcommcontrol.output = gcstring
ENDDO
ENDIF
= FCLOSE(gnFileHandle)
UNTESTED.
>I've managed to copy the contents of the table to a CSV type but I am having problems coding the fopen/fgets. I should explain my ignorance. I am coming up on 76yrs and got interested VFP about 2 years ago.Prior to that I had done a quite a bit of programming in 2.5 and 2.6 for various film and TV projects I was producing. After I retired, VFP looked like keeping me off the streets and out of the bars - well at least for some the time. The project I am working on is for a charity Telethon. If you get me going again it'll speed things up considerably.
>TIA