Article View: be.comp.programming
Article #16288Re: datum van een bestand opvragen
From: Benedict Verhegghe
Date: Fri, 19 May 2000 00:00
Date: Fri, 19 May 2000 00:00
52 lines
2381 bytes
2381 bytes
This is a multi-part message in MIME format.
--------------0C7425B876AE21A85C913F73
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Kristof Verhenne wrote:
>
> Ik wil een bestand openen voor lezen in een C++ programma, van
> dat bestand zou ik graag de datum kunnen inlezen en weergeven in
> het volgende formaat.
> xx/yy/zzzz
> xx=day
> yy=month
> zzzz=year
> Hoe kan ik dit doen? Het programma wordt in linux ontwikkeld.
Je kan alle bestandsinformatie opvragen met de funktie stat().
Zie
man 2 stat
--
=======================================================================
Benedict Verhegghe Universiteit Gent
e-mail: Benedict.Verhegghe@rug.ac.be Vakgroep Toegepaste Mechanica
Tel: +32 (0)9 264 3432 Mechanica van materialen en constructies
Fax: +32 (0)9 264 3587 Sint-Pietersnieuwstraat 41, B-9000 GENT
=======================================================================
--------------0C7425B876AE21A85C913F73
Content-Type: text/x-vcard; charset=us-ascii;
name="Benedict.Verhegghe.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Benedict Verhegghe
Content-Disposition: attachment;
filename="Benedict.Verhegghe.vcf"
begin:vcard
n:Verhegghe;Benedict
x-mozilla-html:TRUE
org:University of Ghent, Department of Applied Mechanics
adr:;;Sint-Pietersnieuwstraat 41;GENT;;B-9000;Belgium
version:2.1
email;internet:Benedict.Verhegghe@rug.ac.be
title:Professor
tel;fax:+32 9 2643587
tel;home:+32 9 2219708
tel;work:+32 9 2643432
x-mozilla-cpt:;16416
fn:Benedict Verhegghe
end:vcard
--------------0C7425B876AE21A85C913F73--
Technical Details
Message-ID:
<3924E8F1.5FE81014@rug.ac.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<pqd1g8.ks2.ln@localhost.localdomain>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: 100a19,869b6e87fb25cdd1 X-Google-Attributes: gid100a19,public X-Google-Thread: fcea4,869b6e87fb25cdd1 X-Google-Attributes: gidfcea4,public From: Benedict Verhegghe <Benedict.Verhegghe@rug.ac.be> Subject: Re: datum van een bestand opvragen Date: 2000/05/19 Message-ID: <3924E8F1.5FE81014@rug.ac.be> X-Deja-AN: 625306022 References: <pqd1g8.ks2.ln@localhost.localdomain> X-Accept-Language: en, nl, fr, de, ru Content-Type: multipart/mixed; boundary="------------0C7425B876AE21A85C913F73" Organization: University of Ghent, Dept. of Applied Mechanics Mime-Version: 1.0 Newsgroups: be.comp.programming,be.comp.os.linux