Hmmm, when I load images etc, I have to use slash instead of backslashes.
dbLoadImage( ID, "X://Dir1//Dir2//file.ext");
Please tell me if I am wrong
Alternatively to "fopen", you can use the std filestreams.
// basic file operations
#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
ofstream myfile;
float fValue = 3.14;
myfile.open ("example.txt");
myfile << "Writing this to a file."<<endl;
myfile << "Write another line to a file.\n";
myfile << "Write a value to a file: value = "<<fValue<<endl;
myfile.close();
return 0;
}
Article:
http://www.cplusplus.com/doc/tutorial/files.html
//Edit dab: dec/12/2006 9.00am GMT+1
//-expand code sample
//Awards: Best DM at NeverwinterConventionIII (NWCon3)
//Sys: Pentium IV 3200E/Prescott;800Mhz FSB;HT;WinXPPro;ATIR9700PRO;1024MB RAM(2x512MB"DualChanneled"
;VC++7.net;Delphi6;ADSL512;