Re: Length of a file

From: jblazi (jblazi_at_hotmail.com)
Date: 03/21/04


Date: Sun, 21 Mar 2004 22:49:48 +0100

On Sun, 21 Mar 2004 18:54:04 +0000, Thomas Matthews wrote:

> I found this when searching the C and C++ language
> newsgroups for "file length":
> http://www.google.com/groups?as_q=file%20length&safe=images&ie=UTF-8&oe=UTF-8&as_ugroup=comp.lang.c%2b%2b%2C%20comp.lang.c&lr=&hl=en
>
> Searching the newsgroups and the web before posting is
> always a Good Idea.

Yes it is. But after looking for the first 8 pages in Google I only find
comp.lang.c examples! I know, how to do it with the C runtime library, I
can say _filelength(fd) or use _stat (at least on Microsoft compilers).

What I wanted to know was, if there was a portable, well defined way of
doing it from C++.

Thank you anyway.

-- 
jb
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


Relevant Pages

  • MSN Video
    ... I apologize if I am posting in the wrong group or this has been answered ... I have been searching through the newsgroups and i haven't been able ...
    (microsoft.public.windowsmedia)
  • Re: [OT, welcome msg, link] C++ Network Programming: Port "Sniffing" For Bandwidth Reporte
    ... >> Save your time and other's by consulting FAQs, searching ... >> the web and newsgroups before posting. ... Information on how to use newsgroups effectively and courteously: ...
    (comp.lang.cpp)
  • Re: Event Id 26 shows IO error 0xc000020c
    ... Always try the MS KB first before posting. ... And the answer could have already been posted, so try searching this and other newsgroups first. ... "EngKit" wrote: ...
    (microsoft.public.win2000.general)
  • Re: Mortgage Broker or Loan Officer Career
    ... Please look at newsgroups before posting to them. ... SEARCHING for your answer before asking others. ... search for "Loan Officer Resume Template" might get you some answers. ...
    (microsoft.public.access.forms)
  • [rttm] - post approved
    ... REC.TOYS.TRANSFORMERS.MODERATED MODERATION FAQ & CHARTER ... Posting and rtt-request email addresses HAVE CHANGED ... COMMERCIAL NEWS SERVERS ... NNTP/WWW newsreading and posting service to ~7500 newsgroups, ...
    (rec.toys.transformers.moderated)