CSharp411.com is a blog written by Timm Martin about the C# programming language and .NET Framework. This site contains C# information, code, tips and news. -More-
It is interesting to notice that the File.ReadAllText and File.ReadAllLines methods were added in the version 2.0 of the .NET framework; mainly because in the previous versions, the necessary usage of a Stream object made reading text files difficult and unintuitive for most of the developers.
It is interesting to notice that the File.ReadAllText and File.ReadAllLines methods were added in the version 2.0 of the .NET framework; mainly because in the previous versions, the necessary usage of a Stream object made reading text files difficult and unintuitive for most of the developers.
thanx
How do u read a file like blablabla.txt and say if on it theres like 1001 u download a file
How to read a RTF File from embedded resource into a C# string?
thanks–that helps me a lot!
Good, what about case when I need to use the text line by line. Should I split it after that? or do I need to read it into array