How can I find out the currently logged on user then create a text file on the desktop of that user? I have been researching for hours, trying different code and I am still unable to do this.
Thanks!
Drew
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In C++ that is not the way to concatenate strings. try:
In C++ you cannot concatenate strings by just writing them next to each other. One of the ways is to strcat them or use the idiomatic c++ approach of converting to
std::stringand then use the+to concatenate them.