
8 Aug
2004
8 Aug
'04
10:56 p.m.
On Sun, 2004-08-08 at 17:44, Bob Jamison wrote:
How about this for a short-term fix: we fstat() the file, get its size, and only preview it if it is smaller than some arbitrary amount.
That seems sensible, although fstat() is not portable (at least not to Windows) ... probably you will need to fseek(..., 0, SEEK_END) and then use ftell() to determine the file's length.
-mental