FileIO.fromFile

Emits the contents of a file.

File IO Sinks and Sources

Warning

The fromFile operator has been deprecated, use fromPath instead.

Signature

FileIO.fromFileFileIO.fromFile

Description

Emits the contents of a file, as ByteStrings, materializes into a Future CompletionStage which will be completed with a IOResult upon reaching the end of the file or if there is a failure.