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 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.180.24.130 with SMTP id u2mr1008766wif.6.1359079682706; Thu, 24 Jan 2013 18:08:02 -0800 (PST) Path: i11ni18218wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.bawue.net!storethat.news.telefonica.de!telefonica.de!news-1.dfn.de!news-2.dfn.de!news.dfn.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: cannot write to a file in Linux despite +rw permissions Date: Fri, 18 Jan 2013 23:36:00 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <1d536a59-c2e6-40d8-bf1e-fa7a0b4a923a@googlegroups.com> <9c80818c-77bf-489f-9648-7271e55f4ac7@googlegroups.com> Mime-Version: 1.0 Injection-Date: Fri, 18 Jan 2013 23:36:00 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="19727"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187I4hK16X/5jarU6CxNn84SOWXeYF9bUA=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:DgIVYNi+FHqEmWVjIDx8dLeu2YE= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2013-01-18T23:36:00+00:00 List-Id: On Fri, 18 Jan 2013 07:44:03 -0800, Ada novice wrote: > 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 at the bottom right. The text file stops being written and if I open > the text file, then I can see the values wriiten up till when I > terminate the program. > > On my Linux, if I press the terminate button in GPS while the program is > still running and the file is being written, something happens so that > the text file does not keep the values wriiten so far. This is why I was > getting a blank text file. The file is probably only flushed on exit or if you programmed a specific flush operation (or Close). If you were terminating the program abnormally (e.g. in a debugger), that may not have been happening. I was simply running from the command line and letting it exit... > Problem solved! I'm glad! - Brian