comp.lang.ada
 help / color / mirror / Atom feed
From: comicfanzine@gmail.com
Subject: Re: Create in a root directory (Linux)
Date: Wed, 28 Oct 2015 23:50:38 -0700 (PDT)
Date: 2015-10-28T23:50:38-07:00	[thread overview]
Message-ID: <e261a3d7-721d-4ae9-9a57-5d239d0a7424@googlegroups.com> (raw)
In-Reply-To: <87wpu6tx5w.fsf@jester.gateway.sonic.net>

Le jeudi 29 octobre 2015 00:01:49 UTC+1, Paul Rubin a écrit :
> Simon Wright <simon@pushface.org> writes:
> >>    Create( MonFichier,Name => " /clone.adb");
> 
> The problem is the leading space before the /

I use Linux = Ubuntu .
My fault i have not paste the code right , in fact the code whas without the space already :

WITH Ada.Text_IO ;  USE Ada.Text_IO ; 

PROCEDURE TestFichier IS

   MonFichier : File_type ; 
   
BEGIN 
   Create( MonFichier,Name => "/clone.adb");
   Close(MonFichier);
END TestFichier ;
[/code]I got the error :
raised ADA.IO_EXCEPTIONS.USE_ERROR : /clone.adb: Permission denied

Then how can i be recognize as "root" for create my file in this directory .


  parent reply	other threads:[~2015-10-29  6:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28 17:31 Create in a root directory (Linux) comicfanzine
2015-10-28 20:12 ` Simon Wright
2015-10-28 23:01   ` Paul Rubin
2015-10-29  6:41     ` comicfanzine
2015-10-29  6:50     ` comicfanzine [this message]
2015-10-29  7:00 ` comicfanzine
2015-11-01 14:23   ` Kevin K
2015-11-03 11:12   ` M. Strobel
replies disabled

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