Sets or gets the AutoFlush property that controls whether or not output is buffered.
steamwriter_object.AutoFlush = <boolean_value>
-or-
...steamwriter_object.AutoFlush
Prerequisites
None
Parameters
None
Remarks
Setting this property to True causes output requests to immediately write data to the file or device. Setting it to False buffers the output and lets the system decide when to write it. Buffered output is always immediately written when a Flush or Close method is executed.
Setting AutoFlush to True for files may significantly slow down any write operations.
By default, AutoFlush is set to True for serial ports and the /NVRAM device and set to False for files on other devices.
Examples
Dim pfile As New StreamWriter("/flash/save.txt") ' Open permanent file
pfile.AutoFlush = True
See Also