StreamReader sr;
string buf;

for (int i = 0; (buf = sr.ReadLine()) != nul; i++) {
  /* string配列に格納 */
}

これだけのプログラムです
C++で書くと一瞬なのでスペックの問題ではないと思います