Click or drag to resize
Akka.NETFileIOToFile 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.129 (1.2.3.129)
Syntax
public static Sink<ByteString, Task<IOResult>> ToFile(
	FileInfo f,
	Nullable<FileMode> fileMode = null
)

Parameters

f
Type: System.IOFileInfo
TBD
fileMode (Optional)
Type: SystemNullableFileMode
TBD

Return Value

Type: SinkByteString, TaskIOResult
TBD
See Also