Deutsch   English   Français   Italiano  
<svjkot$1b9$1@shakotay.alphanet.ch>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!feeder.erje.net!news.alphanet.ch!alphanet.ch!.POSTED.lfbn-poi-1-1301-209.w90-78.abo.wanadoo.fr!not-for-mail
From: "M.V." <mv@gmail.com.invalid>
Newsgroups: fr.comp.sys.mac.programmation
Subject: Re: Script Debugger & 1.0.8 disponible
Date: Mon, 28 Feb 2022 23:10:21 -0000 (UTC)
Organization: M.V. & Co
Sender: michelvauquois@lfbn-poi-1-1301-209.w90-78.abo.wanadoo.fr
Archive: no
Message-ID: <svjkot$1b9$1@shakotay.alphanet.ch>
References: <svd7aj$a5b$1@shakotay.alphanet.ch> <svfpio$e2l$1@shakotay.alphanet.ch>
 <1po1hkr.s1q3bl8e8vuyN%josephb@nowhere.invalid>
 <svgaq0$kpi$1@shakotay.alphanet.ch> <svh6l5$63i$1@shakotay.alphanet.ch>
 <1po34ba.sk8w6k1u4ttl8N%josephb@nowhere.invalid>
 <svj362$5ct$1@shakotay.alphanet.ch> <svj66o$4pm$1@dont-email.me>
 <svj9lq$u9$1@shakotay.alphanet.ch>
Reply-To: michel.vauquois@gmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 28 Feb 2022 23:10:21 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-host="lfbn-poi-1-1301-209.w90-78.abo.wanadoo.fr:90.78.231.209";
	logging-data="1385"; mail-complaints-to="usenet@alphanet.ch"
User-Agent: MacCafe/2.07b24 (macOS 10.14.6 (18G9323) - MacBookAir7,2)
Cancel-Lock: sha1:0Crn/L/cwKCUE8uyTpfWQcA9BnE= sha256:IDAzziCVQPuEZNkIy175M2VViICTIYIz/QNVkKfbXN4=
In-Reply-To: <svj9lq$u9$1@shakotay.alphanet.ch>
X-Face: 0f|`H5*Our0P$s'uj0)fS=&`R#U+JYpl<W.~uGMH[S}%Yo{$(f$0`!02mu$5b`f7Hp6:EiW
 c`zw`Y^GQAA=_IIV`NIXW4&YpH]>e<6GW!O'TO4sB4,Q9"tHNQo]\7p\,,nCZ_saH4~Ie
 'gYktutVOXK})aU*/@meZ_y=ixi8qwcJ,ssAk~G4Rr?qr60d_euHkHHJ_;EHES_(IExNo
 h6
X-No-Archive: yes
Mail-Copies-To: nobody
URL-perso: http://michelvauquois.fr
Bytes: 2671
Lines: 16

Le 28 février 2022 à 21:00, Benoît L. a tenu les propos suivants :

> Import() si pas de fichier, si fichier existant mais vide, si
> l’utilisateur le souhaite. Trois fois la même action et on ne va pas en
> faire une routine ?

Tu ne comprends pas ce que je dis…
Le problème n'est pas de savoir s'il y a besoin de faire une routine ou
pas : ta routine comporte je ne sais plus combien de lignes (j'ai tout
mis à la poubelle) mais remplacer le contenu d'un fichier par le contenu
d'un autre fichier, ça ne prend pas autant de lignes de code.
Puisque tu as juste choisi de remplacer en réalité un fichier par un
autre : supprimer le fichier existant (ou simplement changer son nom) et
copier le nouveau fichier en lui donnant le bon nom dans le bon dossier
à l'aide de commandes shell, ça prendra juste quelques lignes.
Une routine oui mais pas une routine loufoque ! ;-)