>I am trying to copy a dbf to the equivalent of a .csv file (comma separated). If I use the VFP command:
>
>COPY TO file DELIMITED WITH CHAR ,
>
>It will separate the field with commas but it also puts quotation marks around the character fields (apparently because commas may be in the text). I don't want to send that. I want strict comma delimited.
>
>Any suggestions???
>
>Thanks always everyone for the advice.
copy to file temp.txt delimited
handlein=fopen("temp.txt")
handleout = fcreate("mytext.txt")
#define MAXSIZE 65535
do while !feof(handlein)
=fwrite( handleout, ;
chrtran( fread( handlein, MAXSIZE),["],"", MAXSIZE )
enddo
=fclose(handlein)
=fclose(handleout)
erase temp.txt
Cetin