.NET Assemblies and Streams Handling Files

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/21

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering .NET assemblies, types of assemblies, byte-oriented streams, file modes, and character-based I/O handling in C#.

22 Terms

1
New cards

Assemblies

Files that contain compiled code targeted at the .NET Framework, serving as physical packages meant for distributing code.

2
New cards

Metadata (Assembly)

The section of an assembly that includes information about the data types of the program that are being used.

3
New cards

Manifest

The section of an assembly that holds the assembly information, consisting of the name, version number, and the type of mapping information.

4
New cards

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.

5
New cards

Shared Assemblies

Libraries that other applications can commonly use, requiring security precautions because any other software can access them.

6
New cards

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.

7
New cards

Global Assembly Cache (GAC)

A centralized storage location for .NET Assemblies that enables multiple applications to share a shared assembly.

8
New cards

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.

9
New cards

Output Streams

A type of stream that refers to a destination where data is written, such as a printer or a remote server location.

10
New cards

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.

11
New cards

System.IO

The C# namespace containing classes used to read and write files, required to be included in all programs that use streams.

12
New cards

FileStream

A class used to create a byte-oriented stream attached to a file for read and write operations.

13
New cards

FileMode.Create

A FileMode option that creates a new output file and overwrites it if the file already exists.

14
New cards

FileMode.CreateNew

A FileMode option that creates a new output file that does not already exist.

15
New cards

FileMode.OpenOrCreate

A FileMode option that opens an existing file, or creates a new one if it does not already exist.

16
New cards

FileMode.Truncate

A FileMode option that opens an existing file and truncates its existing content.

17
New cards

File Pointer

An indicator that determines the location of the next read/write operation to take place on a file.

18
New cards

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).

19
New cards

StreamWriter

A class that writes characters to a stream by wrapping a FileStream and automatically converting character streams to byte streams.

20
New cards

StreamReader

A class that reads characters from a byte stream by wrapping a FileStream and automatically converting byte streams into character streams.

21
New cards

Peek()

A StreamReader method that returns the value in the stream without moving the file pointer.

22
New cards

ReadToEnd()

A StreamReader method that reads all characters from the current location until the end of the stream.