From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,129433ab43bf5aef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.72.199 with SMTP id n7mr5467714qaj.5.1358523843319; Fri, 18 Jan 2013 07:44:03 -0800 (PST) X-Received: by 10.182.160.37 with SMTP id xh5mr314113obb.41.1358523843157; Fri, 18 Jan 2013 07:44:03 -0800 (PST) Path: k2ni675qap.0!nntp.google.com!p13no1257839qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 18 Jan 2013 07:44:03 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=95.199.27.174; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I NNTP-Posting-Host: 95.199.27.174 References: <1d536a59-c2e6-40d8-bf1e-fa7a0b4a923a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9c80818c-77bf-489f-9648-7271e55f4ac7@googlegroups.com> Subject: Re: cannot write to a file in Linux despite +rw permissions From: Ada novice Injection-Date: Fri, 18 Jan 2013 15:44:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2013-01-18T07:44:03-08:00 List-Id: I have tracked the problem. It is working fine now. On Windows while GPS is= running, I can terminate the application with the cross X located in GPS a= t the bottom right. The text file stops being written and if I open the tex= t file, then I can see the values wriiten up till when I terminate the prog= ram. On my Linux, if I press the terminate button in GPS while the program is st= ill running and the file is being written, something happens so that the te= xt file does not keep the values wriiten so far. This is why I was getting = a blank text file.=20 I was not noticing this as I was running a complex program that takes long = to run. But when I tried my small code and it worked, this gave me some hin= t. Problem solved! YC