New (at least for me) IO functions.

Well, live and learn. This was an interesting day. I am working on a little project right now, can’t really discuss details, and quite frankly it is nothing that I am going to be too proud of once it is done. But this is not the point. I had to do some minor IO work with this and this is when I found that instead of doing stuff like:
_fsCFileStream = new FileStream(sFileName, FileMode.Open, System.IO.FileAccess.Read);
_srStreamReader = new StreamReader(_fsCfMCCSV, Encoding.GetEncoding(1252));
try
{
if ((sLineIn = _srCfMCCSV.ReadLine()) == null)
//do stuff here
}catch(){}
I can simply do
File.ReadAllLines();
I guess I was stuck on .Net 1.3 for so long, I completely skipped 2.x and now 3.5 is full of surprises. I know I am behind times, need to catch up soon. Gone to do some reading.