[762] in Coldmud discussion meeting

root meeting help first previous next last

re: file stuff

daemon@ATHENA.MIT.EDU (Tue Aug 1 17:23:31 1995 )

From: "Maddog's Studio" <maddog@best.com>
To: coldstuff@MIT.EDU
Date: Tue, 1 Aug 1995 14:18:41 -0700 (PDT)


Maddog's Studio wrote:
> 
	[...]
> Definitely the form:
> 	open
> 	read/write
> 	close  
> 	stat or exists/eof
> 

I whoops myself.  This is definitely low level.  I know this for a fact
because I was just playing with embedding Python in C and had to write
something like this:
(1)

	fp=fopen("something","r");
	if (fp !=NULL){
		(void) run_script(fp,"something"); /* huh???? */
		err_clear();
		fclose(fp);
	}

The higher level wrapper for this should look something like this:
(2)
	myrun_script("something");

Ah! much better.  Clearly I like (2) for this type of action.
And then maybe I don't understand the question at all.

Frank

-- 
________________________________________________________________________
maddog's studio http://www.maddog.com/
Frank Crowell frankc@maddog.com