*BSD News Article 68640


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!odin.oar.net!malgudi.oar.net!imci4!newsfeed.internetmci.com!netnews.nwnet.net!arclight.uoregon.edu!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.misc,comp.unix.bsd.misc
Subject: Re: How to delete files within C programs
Followup-To: comp.unix.misc,comp.unix.bsd.misc
Date: 15 May 1996 14:52:43 +0100
Organization: Coverform Ltd.
Lines: 35
Distribution: world
Message-ID: <4ncnjb$148@anorak.coverform.lan>
References: <Oum-El-Kheir.Benkahla-3004961724540001@mac-ugm-3.imag.fr> <4n76vv$29j@innocence.interface-business.de> <kaleb.832080109@exalt> <4naf20$bdh@news.rhrz.uni-bonn.de> <DrEv0E.17A@kithrup.com> <4nb1tf$qv8@news.rhrz.uni-bonn.de>
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.misc:22808 comp.unix.bsd.misc:1065

Henry G. Juengst (juengst@saph1.physik.uni-bonn.de) wrote:

: I do not want to deny that it is possible to find the information (in
: most cases). I just want to make people sensitive for the problems
: of beginners and I hate answers like 'very simple solution', if it is
: in fact not a trivial solution. People would never ask if it is simple.

Not true.  I know lots of people who couldn't be bothered to find out for
themselves.  They ask someone.  I have no problems with such people as
long as they remember the answer.

The point is, it _IS_ a 'very simple solution'.  If a person is writing
C code under Unix, you must assume that they are using an editor.  This
almost definitely means vi or emacs.  Knowing how to use these - even
knowing how to get by with these involves a learning curve far greater
than deleting a file (and don't start talking about links - it's
irrelevent - the file is gone from _my_ view).

If this person has problems with calling a function and passing it a
filename - if they find it "difficult", they should not be programming.

Calling unlink is a _TRIVIAL_ solution !

: Henry

: --
: juengst@saph1.physik.uni-bonn.de         [131.220.161.1]  (Internet)
: omni:.de.uni-bonn.physik.saph1::juengst                   (DECnet/OSI, phase V)
: saph1::juengst                           [26.358]         (DECnet, phase IV)

: Any opinions in this mail are my own.

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....