jayRon , you can use filestream or you could use string.
I suspect that what you are asking is how to do it, so here's an example or two:
string FullFileName;
FullFileName="somefile.txt";
if (dbFileExist((char*)FullFileName.c_str())==1){
dbDeleteFile((char*)FullFileName.c_str());
}
int FileID=2; // or whatever file number is relevant here...
dbOpenToWrite(FileID,(char*)FullFileName.c_str());
// do stuff here
dbCloseFile(FileID);
(If using filestream objects, use .str() instead of .c_str() of course)
Amazing Simulation
www.amazing-forum.com