You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
607 B
27 lines
607 B
#include "pathfinderDataStream.h"
|
|
pathfinderDataStream::pathfinderDataStream( char *Name){
|
|
m_pFID = NULL;
|
|
if( Name != NULL ){
|
|
pathfinderDataStream::open( Name );
|
|
};
|
|
};
|
|
|
|
pathfinderDataStream::~pathfinderDataStream(){
|
|
if( m_pFID!= NULL ) pathfinderDataStream::close();
|
|
};
|
|
|
|
bool pathfinderDataStream::open( char *Name ){
|
|
if( m_pFID!= NULL ) return false;
|
|
m_pFID = fopen( Name, "ab+" );
|
|
if( m_pFID == NULL ) return false;
|
|
strncpy( m_pName, Name, MAX_PATH );
|
|
return true;
|
|
};
|
|
|
|
bool pathfinderDataStream::close(){
|
|
if( m_pFID == NULL ) return false;
|
|
fclose( m_pFID );
|
|
m_pFID = NULL;
|
|
return true;
|
|
};
|
|
|