use mytable copy to myFile type delimited with tab =removequotes("myFile.txt") function removequotes lparameters tcFileName && Copy to .... with tab filename - existing file handle=fopen(tcFileName,12) lnSize = fseek(handle,0,2) && Get size =fseek(handle,0,0) && Rewind to start lcFile = chrtran(fread(handle, lnSize), ["], "") =fseek(handle,0,0) && Rewind to start =fwrite(handle, lcFile , lnSize) =fchsize(handle, fseek(handle, 0,1)) && Set new size =fclose(handle) *This would remove the quotes. *But there is another version which also transfers memos. use myTable =_copyto("myFile.txt", chr(9)) function _copyto LPARAMETERS tcOutFileName, tcDelimiter #DEFINE TABULATE tcDelimiter #DEFINE NL chr(13) handle = fcreate(tcOutFileName) && Create copy file SCAN && Start scan..endscan FOR ix = 1 to fcount() && Write field values =fwrite(handle, TypeConvert(ix) ) IF ix < fcount() =fwrite(handle, TABULATE) ENDIF ENDFOR =fwrite(handle, NL) ENDSCAN =fclose(handle) FUNCTION TypeConvert LPARAMETERS tnField lcType = type(field(ix)) IF lcType # "G" luValue = eval(field(ix)) ENDIF DO case CASE lcType = "D" lcValue = dtoc(luValue) CASE lcType = "T" lcValue = ttoc(luValue) CASE lcType = "N" lcValue = padl(luValue,20," ") CASE lcType = "L" lcValue = iif(luValue,"Yes","No") CASE lcType $ "M" && Replace paragraph marks with "~" lcValue = strtran(luValue, chr(13)+chr(10), "~") CASE lcType $ "C" lcValue = luValue OTHERWISE lcValue = "" ENDCASE RETURN alltrim(lcValue)Cetin