使用StreamReader时怎样把读出的行转存到字符数组中?
String^ line;char cmdline[80];
{
IsolatdStorageFileStream^ MyFile= gcnew IsolatedStorageFileStream("test.txt",FileMode::Open)
StreamReader^ MyReader=gcnew StreamReader (MyFile);
try
{
while(MyReader->Peek()>=0)
{
line=MyReader->ReadLine();
//TODO
}
}
..................
}
如何把读出的行转存到给定的数组中?谢谢!