Return-Path: william@bourbon.usc.edu Delivery-Date: Sun Sep 7 18:54:26 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m881sQsM014001 for ; Sun, 7 Sep 2008 18:54:26 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m881rH8X021678 for ; Sun, 7 Sep 2008 18:53:17 -0700 Message-Id: <200809080153.m881rH8X021678@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Stat(1) for filesize Date: Sun, 07 Sep 2008 18:53:17 -0700 From: Bill Cheng Someone wrote: > You have emphasized to use stat(1) for filesize. But I have used other > method such as 'Fseek' to know the filesize. Is that ok? Or should I > change it? Anything equivalent would be fine. Please make sure that the value it gives is correct and that it also works for directories. -- Bill Cheng // bill.cheng@usc.edu