text: #include "mstdio.h"
  /*#include <stdio.h>*/
  
  main()
  {
  M_FILE *iop;
  char buff[1024];
  int i;
  
  
  	fprintf(stderr,"hello eccles\n");
  	if((iop = mfopen("test",0, "a+")) == NULL)
  		fprintf(stderr,"Open failed\n");
  	if(( i = mfwrite(buff,1024,1,iop)) != 1)
  		fprintf(stderr,"write failed %d\n",i);
  	mfflush(iop);
  	mrewind(iop);
  	if(( i = mfwrite(buff,1024,1,iop)) != 1)
  		fprintf(stderr,"write failed %d\n",i);
  	mrewind(iop);
  	if((i = mfread(buff,1024,1,iop)) != 1)
  		fprintf(stderr,"read failed %d\n",i);
  	if(mfclose(iop) == -1)
  		fprintf(stderr,"close failed\n");
  	mexit(0);
  }
  