in vb net i use this code: My.Computer.FileSystem.ReadAllText("C:\test.txt")
How about in C++? thanks!