hi everyone,
i have a doubt on file handling using C. Can anyone just tell me how to change file extension of a file(ex .txt to .dat ..etc..) using a C program.
thank you

The rename() function perhaps?

ya it's true. Using rename() function we can change file extension or filename or just both.
thank u sir