Anonymous user
Read a file character by character/UTF8: Difference between revisions
Read a file character by character/UTF8 (view source)
Revision as of 21:52, 29 December 2013
, 10 years ago→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
<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.*/
|