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

Date: Tue, 3 Jun 1997 10:55:40 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: S2200253 AT nickel DOT laurentian DOT ca
Cc: djgpp AT delorie DOT com
Subject: Re: fstat & C++ iostreams
In-Reply-To: <01IJMBY1FOYQ8ZN0E1@NICKEL.LAURENTIAN.CA>
Message-Id: <Pine.D-G.3.91.970603105406.4194E-100000@dg1>
Mime-Version: 1.0

On Tue, 3 Jun 1997 S2200253 AT nickel DOT laurentian DOT ca wrote:

> 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?

Just use the stat() function which takes a filename rather than a "C" file 
descriptor.

 Art S. Kagel, kagel AT bloomberg DOT com

- Raw text -


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