If I were you, I would try :
string line;
while ((line = A.ReadLine()) != null)
{
Console.WriteLine(line);
}
Your problem is you create an infinite loop in your while block ; you have to modify your line variable inside the loop if you want a chance to escape it sometime.
Hope this helps.