Apr 23, 2011 at 1:18pm
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?
Apr 23, 2011 at 1:57pm
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 Apr 23, 2011 at 1:57pm
Apr 23, 2011 at 2:20pm
i know how to do it in unmanaged code but how to convert to window form?