begin
asked on
string substitution
char* usr = getlogin() ;
ifstream in("/var/mail/ <output here> ") ;
I want to substitute the output of getlogin() in the above ifstream, how shoud i, helps please
--begin.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for your solutions.
std::string FilNam = "/var/mail/";
FilNam += getlogin();
ifstream in(FilNam.c_str());
for readability.