fileio.h

来自「NTL is a high-performance, portable C++ 」· C头文件 代码 · 共 50 行

H
50
字号

#ifndef NTL_fileio__H
#define NTL_fileio__H

#include <NTL/tools.h>

#if (defined(NTL_STD_CXX) || defined(NTL_PSTD_NHF))

#include <fstream>                                                              

#else

#include <fstream.h>

#endif

#if 0
namespace foo_bar {

class ofstream;
class ifstream;

}
#endif

NTL_OPEN_NNS


void OpenWrite(NTL_SNS ofstream& s, const char *name);

// opens file for writing...aborts if fails

void OpenRead(NTL_SNS ifstream& s, const char *name);

// opens file for reading

char *FileName(const char* stem, const char *ext);

// builds the name "stem.ext"

char *FileName(const char* stem, const char *ext, long d);

// builds the name stem.ext.d

NTL_CLOSE_NNS

#endif


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?