Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get

Status
Not open for further replies.

mayu03

Programmer
Joined
Oct 3, 2003
Messages
91
Location
US
I have a file where i am getting the name from a file:
inpf.get(name,15);
How can I check if I get a name and it is true?
 
so you check f last operation succeded:
if(inpf.good())
so you can check if you name is true:
#include<string>
using std::string;
.......
if(string(name) == &quot;true&quot;)

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top