Hi,
I am trying to use an operator += for the folowing code, but it dose not works:
The result with this code is, de client receives the list of the last file in that directory. InstedCode:DIR *dp; struct dirent *ep; char *serverlist = ""; dp = opendir ("./"); if (dp != NULL){ while (ep = readdir (dp)) serverlist = ep->d_name; (void) closedir (dp);i want to useCode:serverlist = ep->d_name;to link string. My question is, how can i achive this?Code:serverlist += ep->d_name;
thanks,
alix