RCSB PDB Protein Data Bank A Member of the wwPDB
An Information Portal to Biological Macromolecular Structures
PDB Home | Contact Us
next up previous contents
Next: CloseFile Up: Methods Previous: Methods

OpenFile

NAME OpenFile

PROTOTYPE

#include "TblFileObj.h"

int TblFileObj::OpenFile(char * filename, int openModeS);

PURPOSE

OpenFile(char *, int) opens a file filename in a mode specified by openMode. The data will write (WRITE_MODE) in, append (APPEND_MODE) to or read (READ_MODE) from filename. filename is name of binary file. This method is always called inside constructor, so there is not need to call this method independently.

RECEIVES

OpenFile(char *, int)
filename The name of file
openMode Mode in which file is opened
RETURN VALUE

A negative value indicates an error or warning.

REMARKS

See also: CloseFile



Olivera Tosic
6/12/2002

 

© RCSB PDB