I have output from my program.
I need it to be sent directly to Notepad or any other word processor.
How can I do that?
it's really important--thanks.
I have output from my program.
I need it to be sent directly to Notepad or any other word processor.
How can I do that?
it's really important--thanks.
Including the <fstream> library will give ye' the tools you need to read and write to a file. Specifically, creating an object of type 'ofstream' will allow you access to library functions that write to a file.
And after writing the output to a file call system() (or some other similar os-specific function) to launch Notepad, for example
system("Notepad myfile.txt");
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.