>>Buzzz!<< Sorry Bill, that was NOT in the form of a Question, we're sorry ;-)Seriously though, Could you be a little more specific? What is the error you're getting? At what line? I'm assuming you've already fopened() the file? Also, why did you post the commented lines?
> DO WHILE lcLine<>'!CUST' + TB AND !FEOF(lnHandle)
> * lcLine = ''
> * lcChar = ' '
> * DO WHILE lcChar<>CR AND !FEOF(lnHandle)
> * lcChar = FREAD(lnHandle,1)
> * IF lcChar<>CR AND lcChar<>LF
> * lcLine = lcLine + lcChar
> * ENDIF
> * ENDDO
> lcLine = FGETS(lnHandle,999)
> = FPUTS(lnHandle2,lcLine)
> ? lcLine
> ENDDO
kenweber
GCom2 Solutions
Microsoft Certified Professional