Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar Namespace / FileSystemTools Class / GetTempFileStream Method / GetTempFileStream(String,Boolean) Method
The full file name path created.
True to set the file delete on close, false to leave the file after close (caller must delete, rename, etc).

GetTempFileStream(String,Boolean) Method
Open a temporary file for read and write and return the open FileStream.
Syntax
'Declaration
 
Public Overloads Shared Function GetTempFileStream( _
   ByRef fileName As String, _
   ByVal deleteOnClose As Boolean _
) As FileStream
 

Parameters

fileName
The full file name path created.
deleteOnClose
True to set the file delete on close, false to leave the file after close (caller must delete, rename, etc).

Return Value

An open read-write FileStream.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also