Releases: richard-viney/file_streams
Releases · richard-viney/file_streams
v1.0.0
- Fixed documentation for
file_stream.open_write_text()
. - Updated dependency versions.
v0.6.3
- Add
file_stream.set_encoding()
function.
v0.6.2
- Improve README and API documentation.
v0.6.1
- Add example to the readme of reading and writing a UTF-16 text file.
- Add Erlang badge to the readme.
v0.6.0
- Allow use of
read_line()
inRaw
mode to improve performance. Note that this only supports reading UTF-8 text andread_chars()
can't be used inRaw
mode. - Improve performance of streams that use an explicit text encoding.
open()
now returns an error if theRaw
andEncoding
modes are specified together as Erlang doesn't support this.- The text encoding must now be specified when using
open_read_text()
andopen_write_text()
. These functions now aren't typically needed when using UTF-8 unlessread_chars()
is required. - Document which file stream functions are available based on the open mode, e.g.
read_bytes()
is not available with most text encodings. - Fixed certain
io
module errors not being wrapped correctly and replaced theInvalidTextData
error withInvalidUnicode
. - The default text encoding is now
Latin1
to match the Erlang default.
v0.5.1
- Add
file_open_mode.Raw
which can be used to improve performance of binary file streams. Raw mode is enabled when using infile_stream.open_read()
andfile_stream.open_write()
.
v0.5.0
- Replace
write_stream
,read_stream
, andread_text_stream
with a singlefile_stream
module. - Reading and writing on a single stream is now possible.
- Text file streams can now choose from the Latin1, UTF-8, UTF-16, and UTF-32 text encodings.
- The read ahead buffer size and delayed write parameters can now be configured precisely if desired.
v0.4.4
- Add
read_stream.position
for setting the current position of a read stream.
v0.4.3
- Add
read_stream.read_remaining_bytes()
.
v0.4.2
- Fix missing import in example code.