CorLib  

FileStream

FileStream overview

Implements:

IObject 
Stream 

Public:

Types:
FileAccess The accesses allowed to the FileStream.  
FileMode The modes in which to open a FileStream  
FileShare How the underlying stream can be shared with other processes.  
Properties:
CanRead (get) Returns an indication for the ability to read from the file stream.  
CanSeek (get) Returns an indication for the ability to seek within the file stream.  
CanTimeout (get) Returns if this object can timeout.  
CanWrite (get) Returns an indication for the ability to write to the file stream.  
IsAsync (get) Returns whether or not the FileStream was opened up in asynchronous mode.  
Length (get) The length of the current stream in bytes.  
Name (get) Returns the name of the underlying stream.  
Position (get) Returns the current position within the stream.  
Position (let) Sets the current position within the stream to be read from or written to.  
ReadTimeout (get) Returns the read timeout duration.  
ReadTimeout (let) Sets the read timeout duration.  
SafeFileHandle (get) Returns the handle to the underlying stream.  
WriteTimeout (get) Returns the write timeout duration.  
WriteTimeout (let) Sets the write timeout duration.  
Methods:
BeginRead Begins an Asynchronous read operation (currently is only synchronous)  
BeginWrite Begins an asynchronous buffer write. Currently the FileStream class does not support asynchronous buffer writing.  
CloseStream Closes the current stream, flushing any data that may need to be written to the stream.  
EndRead Signifies the end of an asynchronous read from the stream.  
EndWrite Signifies the end of an asynchronous write to the stream.  
Equals Returns a boolean indicating if the value and this object instance are the same instance.  
Flush Writes any data that may be in the write buffer to the underlying stream.  
GetHashCode Returns a pseudo-unique number identifying this instance.  
LockStream Locks a portion of a file to prevent write access for other processes.  
ReadBlock Reads a specified number of bytes into the given array.  
ReadByte Returns the next byte in the file stream starting at the current file position.  
SeekPosition Moves the file pointer to a new position relative to a specified reference.  
SetLength Sets the length of the stream to the specified length.  
ToString Returns a string representation of this object instance.  
UnlockStream Unlocks a portion of the file to allow write access to the stream for other processes.  
WriteBlock Writes an array of bytes to the stream.  
WriteByte Writes a single byte to the stream.  

See Also