c program to move the contents of one file to another

how to write a c program to move the contents of one file to another

do you want to just rename the file? -- see standard rename() function

or copy its contents to another file similar to tye system copy or cp command ?
You need two FILE pointers -- one to read the original file and the other to write what was read out to the destination file. You will have to create a loop to read until end-of-file is reached.

Hi ,I will try to help you .
But first try to write some code down here.

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.