#include <iostream;> #include<fstream;> using namespace std; #include<string;> int main() { string line; ifstream in; in.open("test.docx",ios_base::binary); ofstream out; out.open("test1.docx",ios_base::binary); if (in.is_open()) { while ( !in.eof() ) { getline(in,line); out<<line; cout<<line; } } out.close(); in.close(); system("PAUSE"); return (0); }
getline
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)