using namespace System;
using namespace System::IO;
using namespace::System::Text;
int main(array<System::String ^> ^args)
{
// 读取txt文件
StreamReader^ sr = gcnew StreamReader( "data.txt" );
//读取行
String^ str = sr->ReadLine();
//每行中有三个数,希望分别读取
array<String^>^ str2 = gcnew array<String^>( 3 );
//分隔符为空格
char ch = ' ';
//string 拆分
str2 = str->Split( ch );
Console::WriteLine( str );
//String 转换为 int32
System::Int32 num = Convert::ToInt32(str2[1]);
Console::WriteLine(L"Hello World");
return 0;
}