#include "efio.h"
#include "danerror.h"
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
|
FILE * | Efopen (const char *Name, const char *Mode) |
|
◆ MAXERRORMESSAGE
#define MAXERRORMESSAGE 256 |
◆ Efopen()
FILE* Efopen |
( |
const char * |
Name, |
|
|
const char * |
Mode |
|
) |
| |
This routine attempts to open the specified file in the specified mode. If the file can be opened, a pointer to the open file is returned. If the file cannot be opened, an error is trapped.
- Parameters
-
Name | name of file to be opened |
Mode | mode to be used to open file |
- Returns
- Pointer to open file.
- Note
- Globals: None
-
Exceptions: FOPENERROR unable to open specified file
-
History: 5/21/89, DSJ, Created.
Definition at line 43 of file efio.cpp.
47 File = fopen (Name, Mode);
49 sprintf (ErrorMessage,
"Unable to open %s", Name);
void DoError(int Error, const char *Message)