Event-Driven PreFinal

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

31 Terms

1
New cards

Output streams

It refers to a printer, remote server location, or a printer where the data is written.

2
New cards

Input streams

It refers to a file or any source where the data can be read and assigned to the memory variables in the program.

3
New cards

System.IO

namespace contains classes that allow to write and read files.

4
New cards

FileStream

It is a classthat is used to create a byte-oriented stream attached to a file. The code to be used for creating a FileStream object is

5
New cards
6
New cards

FileMode.Create

It creates a new output file, which will be overwritten if a file already exists.

7
New cards

FileMode.CreateNew

It creates a new output file that is not existing.

8
New cards

FileMode.Open

It opens an existing file. The file must already exist; otherwise, an exception is thrown.

9
New cards

FileMode.OpenOrCreate

It opens an existing. If not, it creates a new one.

10
New cards

FileMode.Truncate

It opens an existing file and truncates the content that already exists.

11
New cards

ReadByte()

This method reads a single byte from a file and returns as an integer value.

12
New cards

Read()

This method reads the specified number of bytes from a file into an array

13
New cards

WriteByte()

It writes the specified byte into the file.

14
New cards

Write()

It writes an array of bytes into the file.

15
New cards

Flush()

This method instantly writes the data into the file.

16
New cards

void Close()

This method closes the file, releasing the system resources that are allocated to it.

17
New cards

Seek()

is a method that allows setting the file position indicator of file pointer to the preferred location in the file.

18
New cards

bool CanRead

It returns true if the stream can be read.

19
New cards

bool CanSeek

It returns true if the stream supports position requests.

20
New cards

bool CanTimeout

It returns true if the stream can time out

21
New cards

bool CanWrite

It returns true if the stream can be written

22
New cards

long length

It contains the size of the stream.

23
New cards

StreamWriter

writes characters to a stream and contains several constructors

24
New cards

StreamReader

is a class that reads characters from a byte stream.

25
New cards

Metadata

It includes information about the data types of the program that are being used.

26
New cards

Manifest

It holds the information of the assembly, which consists of the name, version number, and the type of mapping information

27
New cards

.exe

for standalone applications

28
New cards

.dll

for reusable components.

29
New cards

Private Assembly

Simplest type of assembly

30
New cards

Name Collision

It is a common problem in shared assembly wherein other classes or variables have the same name that matches with the other shared assembly

31
New cards

Global Assembly Cache (GAC)

It enables several applications to share shared assembly.