Event-Driven Programming (Prefinals)

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

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.

29 Terms

1
New cards

Streams

It represent 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

2
New cards

Output Streams

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

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

4
New cards

System.IO

A namespace that contains classes that allow to write and read files.

5
New cards

FileStream

It is a class that is used to create a byte-oriented stream attached to a file.

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.

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

Seek()

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

17
New cards

bool CanSeek

It returns true if the stream supports position requests.

18
New cards

StreamWriter

It writes characters to a stream

19
New cards

StreamReader

It is a class that reads characters from a byte stream

20
New cards

Peek()

It returns the value in the stream without moving the file pointer

21
New cards

Flush()

From buffer to memory, it instantly saves the file content

22
New cards

Assemblies

These are files that contain compiled code targeted at the .NET Framework. These are basically physical packages meant for distributing code.

23
New cards

Metadata

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

24
New cards

Manifest

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

25
New cards

.exe

A file extension for standalone applications

26
New cards

.dll

A file extension for reusable components.

27
New cards

Private Assembly

Can only be used within a software package that is intended to be used.

28
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

29
New cards

Global Assembly Cache (GAC)

It enables several applications to share shared assembly.

It is required to add the assembly to the special directory.

It is a centralized storage location for .NET Assemblies.