>>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
>* Could be whole filelength but 65535 prevents rare headaches
>do while !feof(handlein)
> =fwrite( handleout, ;
> chrtran( fread( handlein, MAXSIZE),["],"", MAXSIZE )
>enddo
>=fclose(handlein)
>=fclose(handleout)
>erase temp.txt
Cetin
Alternatively, you can copy to textfile delimited with TAB and then read each line from the text file and change the tabs to commas.