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.82.1 with SMTP id e1mr807451wiy.1.1359079454973; Thu, 24 Jan 2013 18:04:14 -0800 (PST) Path: o9ni18179wio.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.bawue.net!storethat.news.telefonica.de!telefonica.de!news-2.dfn.de!news.dfn.de!newsfeed.straub-nv.de!reality.xs3.de!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: cannot write to a file in Linux despite +rw permissions Date: Fri, 18 Jan 2013 11:37:08 +0100 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <87mww6wze3.fsf@adaheads.sparre-andersen.dk> References: <1d536a59-c2e6-40d8-bf1e-fa7a0b4a923a@googlegroups.com> NNTP-Posting-Host: 3408ds2-vbr.0.fullrate.dk Mime-Version: 1.0 X-Trace: munin.nbi.dk 1358505429 19818 90.184.74.58 (18 Jan 2013 10:37:09 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 18 Jan 2013 10:37:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:QtMENX8cwP/vFtvgim5C8qPJHGw= Content-Type: text/plain; charset=us-ascii Date: 2013-01-18T11:37:08+01:00 List-Id: YC wrote: > I am a newbie in Linux and I have recently installed swiftlinux, which > is Debian based. I am testing my Ada codes. They run well (I have put > GNAT GPL 2011 for now), except that I see that I cannot write to text > files. You program looks correct (but ugly) and when I tested it here on my machine it seemed to work as intended. (I.e. created a file containing three lines of two numbers.) Please follow the style indicated in the Ada Quality and Style Guide. And please don't declare global variables before the bodies of operations which don't need access to them. Greetings, Jacob -- "The butcher backed into the meat grinder and got a little behind in his work."