File: Create

Create

Creates a file. If the file already exists, it is overwritten.

 Public Function Create(
	  ByVal Path As String,
	  Optional ByVal BufferSize As Long = 4096 ) As FileStream

Parameters

Path
[ByVal] String. The new file to be created.
BufferSize
[ByVal] Optional. Long. The size of the internal buffer used byte the FileStream object.  

Default: 4096

Return Values

FileStream -  A FileStream object to be used for reading and writing to the file.

Remarks

The FileStream is declared as Cor.NewFileStream(Path, FileMode.Create, FileAccess.ReadWriteAccess, FileShare.None, BufferSize).

See Also

Project VBCorLib Overview | Class File Overview | FileStream