//create a new StreamReader object and pass in the path to the file
System::IO::StreamReader* r = new System::IO::StreamReader("path to the file");
//create a string variable to hold the value that you read from the file
//in this example you are only reading one line because ReadLine() method is used
String* fcontent = r->ReadLine();
//close the stream
r->Close();