One of the ways of permanent storage of data is through files. A file is a collection of data stored on a secondary storage device, such as the Hard Disk. Every file has a name …
Read More »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 is used for reading while …
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 All Files in a Directory …
Read More »