|
From: Abhijit S. <mu...@gm...> - 2002-11-02 15:27:30
|
> Maybe they're just asking how to handle files in C/C++... If
> this is the case I sugest you to look for it in any book. Most of them
> has a part dedicated to this subject.
Zodiaq was being sarcastic... he tends to do that sometimes :).
Anyway, J B, look up file I/O in any book. In C++, we use the ifstream and
ofstream classes to manage this. A small example:
#include <fstream>
int main()
{
using std::ofstream;
ofstream of;
of.open("temp.txt");
if(!of)
{
// Error
}
of << "Blah, blah.\n";
of.close();
return 0;
}
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|