| FileIOToFile Method |
Creates a Sink which writes incoming
ByteString elements to the given file and either overwrites
or appends to it.
Materializes a
TaskTResult of
IOResult that will be completed with the size of the file(in bytes) at the streams completion,
and a possible exception if IO operation was not completed successfully.
This source is backed by an Actor which will use the dedicated "akka.stream.blocking-io-dispatcher",
unless configured otherwise by using
ActorAttributes.
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static Sink<ByteString, Task<IOResult>> ToFile(
FileInfo f,
Nullable<FileMode> fileMode = null
)
static member ToFile :
f : FileInfo *
?fileMode : Nullable<FileMode>
(* Defaults:
let _fileMode = defaultArg fileMode null
*)
-> Sink<ByteString, Task<IOResult>>
Parameters
- f
- Type: System.IOFileInfo
TBD - fileMode (Optional)
- Type: SystemNullableFileMode
TBD
Return Value
Type:
SinkByteString,
TaskIOResultTBD
See Also