1/28
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
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
Output Streams
It refers to a printer, remote server location, or a printer where the data is written.
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.
System.IO
A namespace that contains classes that allow to write and read files.
FileStream
It is a class that is used to create a byte-oriented stream attached to a file.
FileMode.Create
It creates a new output file, which will be overwritten if a file already exists.
FileMode.CreateNew
It creates a new output file that is not existing.
FileMode.Open
It opens an existing file.
FileMode.OpenOrCreate
It opens an existing. If not, it creates a new one.
FileMode.Truncate
It opens an existing file and truncates the content that already exists.
ReadByte()
This method reads a single byte from a file and returns as an integer value.
Read()
This method reads the specified number of bytes from a file into an array.
WriteByte()
It writes the specified byte into the file.
Write()
It writes an array of bytes into the file
Flush()
This method instantly writes the data into the file.
Seek()
It is a method that allows setting the file position indicator of file pointer to the preferred location in the file.
bool CanSeek
It returns true if the stream supports position requests.
StreamWriter
It writes characters to a stream
StreamReader
It is a class that reads characters from a byte stream
Peek()
It returns the value in the stream without moving the file pointer
Flush()
From buffer to memory, it instantly saves the file content
Assemblies
These are files that contain compiled code targeted at the .NET Framework. These are basically physical packages meant for distributing code.
Metadata
It includes information about the data types of the program that are being used
Manifest
It holds the information of the assembly, which consists of the name, version number, and the type of mapping information.
.exe
A file extension for standalone applications
.dll
A file extension for reusable components.
Private Assembly
Can only be used within a software package that is intended to be used.
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
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.