Home / C# / File Handling in C#

File Handling in C#

Stream In C#

A stream is a sequence of bytes traveling from a source to a destination over a communication medium. Streams can either be input stream or output stream. The input stream …

Read More »

Creating Objects In C#

Creating a DirectoryInfo or FileInfo object is very simple. The constructor takes the path to the file.   DirectoryInfo di = new DirectoryInfo(“C:\\Windows”); FileInfo fi = new FileInfo(“C:\\Windows\\Notepad.exe”);   Listing …

Read More »