comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: cannot write to a file in Linux despite +rw permissions
Date: Fri, 18 Jan 2013 23:36:00 +0000 (UTC)
Date: 2013-01-18T23:36:00+00:00	[thread overview]
Message-ID: <kdcm90$j8f$2@dont-email.me> (raw)
In-Reply-To: 9c80818c-77bf-489f-9648-7271e55f4ac7@googlegroups.com

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



  reply	other threads:[~2013-01-18 23:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18 10:13 cannot write to a file in Linux despite +rw permissions Ada novice
2013-01-18 10:37 ` Jacob Sparre Andersen
2013-01-18 11:15   ` Ada novice
2013-01-18 10:59 ` Brian Drummond
2013-01-18 11:19   ` Ada novice
2013-01-18 15:44     ` Ada novice
2013-01-18 23:36       ` Brian Drummond [this message]
2013-01-19  7:08         ` Ada novice
2013-01-19 10:11           ` Brian Drummond
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox