Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how to copy a file from one drive to another drive?

–1 vote
asked Aug 22, 2019 by anonymous

3 Answers

0 votes
answered Aug 23, 2019 by Мехти Асадзаде (150 points)
CTRL + C   CTRL + C   CTRL + C
0 votes
answered Aug 31, 2019 by anonymous
Create 2x file pointers. F1 opens file in read mode. F2 writes new file at new destination path.

Read from F1 and write into F2 until EOF

Close both files (saves)
0 votes
answered Aug 31, 2019 by anonymous
Open file to read and another to write to. Read from first file and write contents into second file. Close the file.

Default path is file where scripts are held/where compiled from

FILE *ptr, *ptr1;

ptr = fopen("file name/path", "mode");

ptr1 = fopen("file name/path", "mode");

open and write to file etc

fclose("ptr"); //closes and saves file

fclose("ptr1"); //closes and saves file
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...