FileStream^ fs = File::OpenRead( path );
FileStream^ fs = File::OpenRead( path ); StreamReader^ sr = gcnew StreamReader( fs ); int count = 0; String^ myLine; while ( sr->Peek() >= 0 && count<8) { myLine = sr->ReadLine(); count++; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)