string log = mc->getUserName(); //is it correct? Anyway it
compiles correctly...

        ofstream out;
        out.open("/root/Desktop/fileLoginUtente.txt", ios::app);
        out <<  "Test: " << log;
The problem could be that the server may not have the write permission to write to the location /root/Desktop.

Try:  out.open("/tmp/fileLoginUtente.txt", ios::app);

and see if the file gets written.

Samisa...

--
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP";


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to