Section109.1:UsingStreams Astreamisanobjectthatprovidesalow-levelmeanstotransferdata.Theythemselvesdonotactasdata containers. Thedatathatwedealwithisinformofbytearray(byte[]).Thefunctionsforreadingandwritingareallbyte orientated, e.g. WriteByte(). Therearenofunctionsfordealingwithintegers,stringsetc.Thismakesthestreamverygeneral-purpose,butless simpletoworkwithif,say,youjustwanttotransfertext.Streamscanbeparticularlyveryhelpfulwhenyouare dealing with large amount of data. WewillneedtousedifferenttypeofStreambasedwhereitneedstobewritten/readfrom(i.e.thebackingstore). Forexample,ifthesourceisafile,weneedtouseFileStream: stringfilePath=@"c:\Users\exampleuser\Documents\userinputlog.txt"; using(FileStreamfs=newFileStream(filePath,FileMode.Open,FileAccess.Read, FileShare.ReadWrite)) { //dostuffhere... fs.Close();…