I'm currently concantenating an array like so...
int _tmain(int argc, _TCHAR* argv[])
{
//create buffer to receive path
WCHAR pathbuf[MAX_PATH];
//get path into buffer
DWORD pathlen = GetCurrentDirectoryW(MAX_PATH,pathbuf);
//append file name to buffer
pathbuf[pathlen++] = '\\';
pathbuf[pathlen++] = 'f';
pathbuf[pathlen++] = 'i';
pathbuf[pathlen++] = 'l';
pathbuf[pathlen++] = 'e';
pathbuf[pathlen++] = '.';
pathbuf[pathlen++] = 'e';
pathbuf[pathlen++] = 'x';
pathbuf[pathlen++] = 't';
pathbuf[pathlen++] = '\0';
std::wcout << pathbuf << std::endl;
std::cout << pathlen << std:: endl;
return 0;
}
How can I do this a little less cumbersome?