Thread
:
Change the file extension using C
View Single Post
Salem
Ambitious contributor
27Jan2008,14:09
C doesn't care about file extensions.
Code:
FILE *in = fopen("file.dat","rb"); FILE *out= fopen("file.txt","w");
Then you can do whatever you want to read from the .dat file, and write to the .txt file.