taken from the help file , i guess this answers your question
Remarks
Unlike FPUTS( ), FWRITE( ) doesn't place a carriage return and a line feed at the end of the character string.
FWRITE( ) returns the number of bytes written to the file. If FWRITE( ) can't write to the file for any reason, 0 is returned.
.......
DO WHILE .T.
ME.Work()
ENDDO