Answers to Chapter 22 Review Questions
||What is the main reason for using files?|
||Files provide permanent means for storing data.|
||How are streams represented in C# and .NET?|
||With objects of stream classes found in the System.IO namespace.|
||In what context have you already used streams in previous chapters?|
||Console.WriteLine and Console.ReadLine.|
||In which direction is the data moving when we talk about input—from the program to a destination device or from a destination device to the program?|
||From a destination device to the program.|
||In what ways are text files and binary files similar? In what ways are they different?|
||They both consist of bits and bytes. The bits and bytes in text files are encoded into a list ...|
Get C# Primer Plus now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.