Disk space exception ?

From: Sagar Choudhary (sagar.choudhary_at_gmail.com)
Date: 03/30/05


Date: 29 Mar 2005 21:39:50 -0800

Is there any exception related to disk space ?
If not how else can we check the availability of the disk space in a
c++ program. I know ostream helps a bit. When we try to open a file
when there's no disk space ostream::rdstate() returns badbit.