怎么用库函数或者API函数打开某个目录上的指定文件

如何用库函数或者API函数打开某个目录下的指定文件
小弟想试用库函数或API函数打开指定目录下的某一个文件,使用过FileOpen函数不行,后来在书本中找到fopen这个函数,使用过程中还是出现错误,请哪位高手指点两招。

代码:
file *op;
String d;
d=GetCurrentDir()+"\\BE_Setup"+"Setup.exe";
op=fopen(d,"r+");

错误显示:
[C++ Error] Form.cpp(39): E2268 Call to undefined function 'fopen'
[C++ Error] Form.cpp(39): E2034 Cannot convert 'int' to 'void * *'

------解决方案--------------------
使用fopen要加上
#include <stdio.h>
------解决方案--------------------
注意加上头文件。
------解决方案--------------------
C/C++ code
#include <stdio.h>

String d = GetCurrentDir() + "\\BE_Setup\\setup.exe";
FILE *op = fopen(d.c_str(), "r+");

------解决方案--------------------
包含头文件