Quantcast
Viewing latest article 3
Browse Latest Browse All 6

.NET Framework 4 File IO Features

New methods are added to the System.IO.File class in .NET framework 4.0 for reading and writing text files. ReadLines In earlier version we have used File.ReadAllLines method which returns a string array of all lines in the file. String[] lines = File.ReadAllLines(“file.txt”); The issue is it must read all lines and allocate an array to return. For small [...]

Viewing latest article 3
Browse Latest Browse All 6

Trending Articles