Debug FileStream^ fs = File::OpenRead( file_path );
try
{
array^b = gcnew array(1024);
UTF8Encoding^ temp = gcnew UTF8Encoding( true );
while ( fs->Read( b, 0, b->Length ) > 0 )
{
richTextBox1->Text=temp->GetString( b );
//Console::WriteLine( temp->GetString( b ) );
}
}
finally
{
if ( fs )
delete (IDisposable^)fs;
}