Hi Danijel,
This is possibly due to the OEM to ANSI conversion since you are passing
FALSE in the 4th parameter of the FRead4() function. Try passing TRUE:
FRead4(nHandleImport, cBuffer, F_BLOCK, TRUE)
The same goes for FWrite4().
You may also try using FReadLine() which is not dependent upon the
status of SetAnsi(). From the VO documentation:
Sample:
ptrHandle := FOpen2("docs.txt", FO_READ)
IF ptrHandle != F_ERROR
DO WHILE !FEOF(ptrHandle)
? FReadLine(ptrHandle)
ENDDO
ENDIF
FClose(ptrHandle)
Jamal