المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Fastest Method for opening many text files...



C# Programming
02-07-2010, 07:50 AM
i'm currently using:


try
{
// Use StreamReader to consume the entire text file.
using (StreamReader reader = new StreamReader(path))
{
return reader.ReadToEnd();
}
}
catch (Exception e)
{
}


i cycle through each file, do what I need to do w/ the code, and then move onto the next on.

Any other ways to move a little faster?