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

Recommended Answers

The rename() function perhaps?

Jump to Post

All 2 Replies

The rename() function perhaps?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.