FileStream Class
n The FileStream Class Is Used for Reading from and Writing to Files
n FileStream Constructor Parameter Classes
l FileMode – Open, Append, Create
l FileAccess – Read, ReadWrite, Write
l FileShare – None, Read, ReadWrite, Write
l
l
n Random Access to Files by Using the Seek Method
l Specified by byte offset
l Offset is relative to seek reference point: Begin, Current, End
FileStream f = new FileStream(name, FileMode.Open,
FileAccess.Read, FileShare.Read);