/****
 NAME
 	cfile.h - header file for CFile class
 VERSION
 	$Id$
 CHANGELOG
 	$Log$
 */

#if !defined(CFILE_H_INCLUDED)
#define CFILE_H_INCLUDED

#include <coconut/ciostream.h>
#include <coconut/pstream.h>
#include <coconut/pmemory.h>

@interface CFile : CIOStream <PFileFactory, PFileAccess>
{
	id <PConstStr>	file_name ;
}

   /* allocate CFile object and open the file. If the operation failed,
      some messages are outputed as errors */
 + (id <PFile>) newFile: (open_t) mode name: (const char *) filename ;

@end

#endif /* !defined(CFILE_H_INCLUDED) */

