how to show the specific word in text file in window form?

for a text file like the following:

//////////////////////////////

username password 95

//////////////////////////////

I wanna get 95 from the text file and display it to the label->Text

How to achieve?
So are you asking how to read the data from the file, or how to change the text property of the windows form component?

Here is information on file I/O. http://cplusplus.com/doc/tutorial/files/

If the username and password have no whitespace, then you may just be able to use the overloaded >> operator of std::ifstream.

Hope this helps.
Last edited on
i know how to do it in unmanaged code but how to convert to window form?
Topic archived. No new replies allowed.