... function with three parameters and the third parameter should be specified as .F.. I think you mean this code : if( hb_parinfo(0) == 3 && ISLOG( 3 ) ) bWriteEof = hb_parl( 3 ); But i have xharbour 0.99.60 and fhw 2.7 and memowrit(<file>,<text>,.f.) still writes ESC character ...