Read a file character by character/UTF8: Difference between revisions

m
→‎version 1: changed word choice in the section header comments. -- ~~~~
m (→‎version 1: changed a comment in the section header. -- ~~~)
m (→‎version 1: changed word choice in the section header comments. -- ~~~~)
Line 59:
REXX doesn't support UTF8 encoded wide characters, just bytes.
<br>The task's requirement stated that '''EOF''' was to be returned upon reaching the end-of-file, so this programming example was written as a subroutine (procedure).
<br>Note that outputdisplaying of characters that may modify screen behavior such as tab usage, backspaces, line feeds, carriage returns, "bells" and others are suppressed, but their hexadecimal equivalents are displayed.
<lang rexx>/*REXX pgm reads/shows a file char by char, returning 'EOF' when done. */
parse arg f . /* F is the fileID to be read.*/