Letter frequency: Difference between revisions

m
→‎Version 1: corrected two spelling errors. -- ~~~~
(→‎{{header|REXX}}: Version 2 (for TSO))
m (→‎Version 1: corrected two spelling errors. -- ~~~~)
Line 1,170:
===Version 1===
It should be noted that the file being read is read one line at time, so the
<br>line-end characters (presumably the line-feed, carraiagecarriage return, new-line, or
<br>whatever control characters are being used) could have been read and reported.
<br>These characters could be read if the '''charin''' bif would be used instead of '''linein'''.
<br><br>Also note that this REXX program is ASCII or EBCDIC independantindependent, but what constitutes a letter is
<br>restricted to the Latin alphabet (which the English version of REXX considers a letter).
<br>All characters are still counted, whether a letter or not, including non-displayable characters.
Line 1,355:
file ───── countfrq.rex ───── has 3076 characters.
</pre>
 
===Version 2 (for TSO===
<lang rexx>/*REXX program counts the occurences of all characters in a file