how to read txt file when encoding is Unicode

  • Hello! I'm new to ObjectREXX. Please help!
    I'm trying to read txt file, encoding is Unicode. I tried to use SysFromUnicode function to map it to ANSI but had 'incorrect call to subroutine' error. Seems like a syntax problem. What am I doing wrong? There is my code:
    rec =bkrin~linein
    call SysFromUnicode rec, ACP, recout.
    say recout.!TEXT