1234567891011121314151617181920212223242526272829
#include<iostream> #include<fstream> using namespace std; int main() { ofstream outfile("D:\\output.txt"); // body of the program outfile.close(); return(0); }
outfile.is_open()