Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 92082 invoked from network); 3 Oct 2007 06:08:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 06:08:07 -0000 Received: (qmail 82197 invoked by uid 500); 3 Oct 2007 06:07:56 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 82183 invoked by uid 500); 3 Oct 2007 06:07:56 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 82172 invoked by uid 99); 3 Oct 2007 06:07:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 23:07:56 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.68.5.15] (HELO relay01.pair.com) (209.68.5.15) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 03 Oct 2007 06:07:55 +0000 Received: (qmail 75563 invoked from network); 3 Oct 2007 06:06:33 -0000 Received: from unknown (HELO ?10.100.1.194?) (unknown) by unknown with SMTP; 3 Oct 2007 06:06:33 -0000 X-pair-Authenticated: 123.231.23.58 Message-ID: <47032A8E.6030809@wso2.com> Date: Wed, 03 Oct 2007 11:37:18 +0600 From: Samisa Abeysinghe User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: Write an output file in server side code (Axis 1.6b C++) References: <56085b330710020552wad60813ua498623173a650fe@mail.gmail.com> <56085b330710020601n756c5a40l4d244733008258c3@mail.gmail.com> In-Reply-To: <56085b330710020601n756c5a40l4d244733008258c3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org > 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 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP" --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org