delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/03/15:34:15

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fstat & C++ iostreams
Date: Tue, 03 Jun 1997 02:11:41 -0700
Organization: Alcyone Systems
Lines: 19
Message-ID: <3393DFCD.FBEAA81@alcyone.com>
References: <01IJMBY1FOYQ8ZN0E1 AT NICKEL DOT LAURENTIAN DOT CA>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

S2200253 AT nickel DOT laurentian DOT ca wrote:

> I'm writting a program in C++ that needs to find out the time/date
> stamp on a file, which it will have open for reading from.
> 
> To call the function fstat will I have to re-open the given file
> using the "old" C FILE method or is there a way to do so with
> the already open file stream?

Eh?  POSIX fstat takes a file descriptor (and int), not a FILE *.  Either
way, you're going to have to do it separately from a FILE * or an istream.

-- 
       Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
                     Alcyone Systems /   web / http://www.alcyone.com/max/
San Jose, California, United States /  icbm / 37 20 07 N  121 53 38 W
                                   \
     "Covenants without the sword / are but words."
                                 / Camden

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019