Copy Contents Of One File To Another

  • Uploaded by: yetendra singh chauhan
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Copy Contents Of One File To Another as PDF for free.

More details

  • Words: 39
  • Pages: 1
#include<stdio.h> #include #include #include class student { private: char ch; public: void copyfile() { ifstream obj; obj.open("1.txt"); ofstream obj1; obj1.open("2.txt"); while(!obj.eof()) { obj.get(ch); obj1.put(ch); } obj.close(); obj1.close(); cout<<"file copied"; } }; void main() { student name; name.copyfile(); getch(); }

Related Documents


More Documents from ""