mohamed azaz wrote:
I want to know how can I create a simple doc file to drive D in
Harddisk by using c++ code
This is system-specific. Many systems simply don't have "drive"
or "drive D" or "Harddisk". On the systems that do, you would
open a file stream for write and give it a name [of a file] that
doesn't exist, and that might cause the system to create a file
for you (which may happen only when you close that stream).
std::ofstream file("D:\\simple_doc_file");
file << "blah";
file.close();
please answer me Quickly
You could only talk in this manner when you're in the position
of power. Even then I wouldn't recommend it.
bye bye
I hope you mean it.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask