In turbo c++,how can i copy a certain file from one drive to the other e.g,the file is located in G:\one ,i want to copy it to C:\tc the file name is "file.txt"...Much love
Jump to Post
Don't know about Turbo C++. This is standard C++; it may work in Turbo C++ too.
// open the source file for input (text) std::ifstream srce_file( "G:/one/file.txt" ) ; // or "G:\\one\\file.txt" if it is a really old version of Windows // check for is_open() elided for …
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.