Hello everyone. For my C study exercise, I wrote a program under Linux that converts any text file from Unix format to Windows (it involves changing the line terminator from LF to CRLF and vice versa) and vice versa. Now I have brought this code back to Windows and I have recompiled it. Unfortunately, I can't do the text file conversion step from Windows to Linux (CRLF to LF) here.
The written code is attached below.
Can you help me solve this problem ?