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

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.