Read a file character by character/UTF8: Difference between revisions
Read a file character by character/UTF8 (view source)
Revision as of 23:07, 1 July 2020
, 4 years ago→{{header|Haskell}}: (specified imports)
(→{{header|Go}}: add Haskell) |
m (→{{header|Haskell}}: (specified imports)) |
||
Line 196:
-}
import
import
Handle, IOMode (..),
hGetChar, hIsEOF, hSetEncoding, stdin, utf8, withFile
)
import Text.Printf▼
import Control.Monad (forM_, unless)
▲import Text.Printf (printf)
import Data.Char (ord)
processCharacters :: Handle -> IO ()
|