Hi there,
I am working on a project where I need to change the extension of file using C. For example I want to change a ".dat" file and write it in the form of ".txt" file.
Can someone help me with this. I will be very thankful.
,,,
|
Go4Expert Founder
|
![]() |
| 26Jan2008,21:24 | #2 |
|
Moved to C-C++ forum for better response.
|
|
Ambitious contributor
|
|
| 27Jan2008,14:09 | #3 |
|
C doesn't care about file extensions.
Code:
FILE *in = fopen("file.dat","rb");
FILE *out= fopen("file.txt","w");
|

