1/21
Vocabulary practice flashcards covering .NET assemblies, types of assemblies, byte-oriented streams, file modes, and character-based I/O handling in C#.
Assemblies
Files that contain compiled code targeted at the .NET Framework, serving as physical packages meant for distributing code.
Metadata (Assembly)
The section of an assembly that includes information about the data types of the program that are being used.
Manifest
The section of an assembly that holds the assembly information, consisting of the name, version number, and the type of mapping information.
Private Assembly
The simplest type of assembly that can only be used within the software package it is intended for and does not require registry entries.
Shared Assemblies
Libraries that other applications can commonly use, requiring security precautions because any other software can access them.
Name Collision
A common problem in shared assemblies where other classes or variables have matching names, or an incompatible new version overwrites the existing assembly.
Global Assembly Cache (GAC)
A centralized storage location for .NET Assemblies that enables multiple applications to share a shared assembly.
Streams
A source that provides a sequence of bytes, such as a file, an input/output (I/O) device, an interprocess communication pipe, or a TCP/IP socket.
Output Streams
A type of stream that refers to a destination where data is written, such as a printer or a remote server location.
Input Streams
A type of stream that refers to a file or any source where data can be read and assigned to memory variables in the program.
System.IO
The C# namespace containing classes used to read and write files, required to be included in all programs that use streams.
FileStream
A class used to create a byte-oriented stream attached to a file for read and write operations.
FileMode.Create
A FileMode option that creates a new output file and overwrites it if the file already exists.
FileMode.CreateNew
A FileMode option that creates a new output file that does not already exist.
FileMode.OpenOrCreate
A FileMode option that opens an existing file, or creates a new one if it does not already exist.
FileMode.Truncate
A FileMode option that opens an existing file and truncates its existing content.
File Pointer
An indicator that determines the location of the next read/write operation to take place on a file.
Seek()
A method that sets the file position indicator or file pointer to a preferred location in the file using the syntax long Seek(long n, SeekOrigin location).
StreamWriter
A class that writes characters to a stream by wrapping a FileStream and automatically converting character streams to byte streams.
StreamReader
A class that reads characters from a byte stream by wrapping a FileStream and automatically converting byte streams into character streams.
Peek()
A StreamReader method that returns the value in the stream without moving the file pointer.
ReadToEnd()
A StreamReader method that reads all characters from the current location until the end of the stream.