lnFileHandle=FOPEN(lcFile) && Try to open the file IF lnFileHandle >0 && File opened ok lnEOF=FSEEK(lnFileHandle, 0, 2) && Move pointer to EOF lnBOF=FSEEK(lnFileHandle, 0) && Move pointer to BOF IF lnEOF > 0 && The file is not empty lnWriteFile = FCREATE('MyFile.txt') && Create a file to write to && Check here if that went ok? DO WHILE !FEOF(lnFileHandle) lcTranString=CHRTRAN(FGETS(lnFileHandle,8192),'"','') lnResult=FPUTS(lnWriteFile, lcTranString) && I can't for the life of me remeber if you have to move the pointer to EOF && after FPUTS, but I guess not. ENDDO =FCLOSE(lnFileHandle) =FCLOSE(lnWriteFile) ENDIF ENDIF