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
tinsaea
0
Newbie Poster
Recommended Answers
Jump to PostDon'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
vijayan121
1,152
Posting Virtuoso
Moschops
683
Practically a Master Poster
Featured Poster
vijayan121
1,152
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.