OOCP4-9

//BCA Support //www.bcasupport.xyz #include <iostream.h> #include <conio.h> #include <fstream.h> int main() { clrscr(); char ch; ifstream fp1("source.txt"); //source file with some data ofstream fp2("newfile.txt"); while(fp1) { fp1.get(ch); fp2.put(ch); } cout<<"\nFile copied successfuly"; getch(); return 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.