diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-11-09 12:04:26 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-11-09 12:04:26 +0100 |
commit | ce4ba8d71fe41fa827f35f8c75917d76125fa8ab (patch) | |
tree | b35e0b8b61f99a878d384d57f3cb5e752913e025 /lib/kernel/doc/src/file.xml | |
parent | 6f760fcaf2608cc25684e17660a95e51f080c7af (diff) | |
parent | aed947dafb4f98bd1d770cbc63d87b3c93964f46 (diff) | |
download | otp-ce4ba8d71fe41fa827f35f8c75917d76125fa8ab.tar.gz otp-ce4ba8d71fe41fa827f35f8c75917d76125fa8ab.tar.bz2 otp-ce4ba8d71fe41fa827f35f8c75917d76125fa8ab.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/kernel/doc/src/file.xml')
-rw-r--r-- | lib/kernel/doc/src/file.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml index 9cd4cfa712..831ef1c22a 100644 --- a/lib/kernel/doc/src/file.xml +++ b/lib/kernel/doc/src/file.xml @@ -1194,8 +1194,8 @@ and <c>read_line/1</c> are the only ways to read from a file opened in raw mode (although they work for normally opened files, too).</p> - <p>For files where <c>encoding</c> is set to something else than <c>latin1</c>, one character might be represented by more than one byte on the file. The parameter <c>Number</c> always denotes the number of <em>characters</em> read from the file, why the position in the file might be moved a lot more than this number when reading a Unicode file.</p> - <p>Also if <c>encoding</c> is set to something else than <c>latin1</c>, the <c>read/3</c> call will fail if the data contains characters larger than 255, why the <seealso marker="stdlib:io">io(3)</seealso> module is to be preferred when reading such a file.</p> + <p>For files where <c>encoding</c> is set to something else than <c>latin1</c>, one character might be represented by more than one byte on the file. The parameter <c>Number</c> always denotes the number of <em>characters</em> read from the file, while the position in the file might be moved much more than this number when reading a Unicode file.</p> + <p>Also, if <c>encoding</c> is set to something else than <c>latin1</c>, the <c>read/3</c> call will fail if the data contains characters larger than 255, which is why the <seealso marker="stdlib:io">io(3)</seealso> module is to be preferred when reading such a file.</p> <p>The function returns:</p> <taglist> <tag><c>{ok, <anno>Data</anno>}</c></tag> |