Thread: Converting text files from Windows to Linux in C

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2021
    Posts
    19

    Thumbs up Converting text files from Windows to Linux in C

    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 ?
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 02-16-2019, 07:47 PM
  2. Replies: 18
    Last Post: 10-01-2015, 01:54 PM
  3. Replies: 4
    Last Post: 04-29-2010, 08:02 PM
  4. partition for windows and linux files
    By MisterSako in forum Tech Board
    Replies: 5
    Last Post: 09-21-2004, 05:38 PM
  5. Replies: 3
    Last Post: 05-03-2002, 05:18 PM

Tags for this Thread