Results 1 to 4 of 4

Thread: Passing file from Gedit (unix) to Windows Notepad

  1. #1
    Join Date
    Aug 2009
    Posts
    54

    Passing file from Gedit (unix) to Windows Notepad

    I work on UNIX in college and Windows at home. I recorded a file .txt in Gedit (in college), the line breaks are indicated by "squares". I have registered another by notepad (with me) and line breaks are "normal". My problem is that I have a program that takes into account the "return lines as Gedit" and it stopped working on my second file. I would like to find a way on Windows to re-register the second file so that it has "the same head". Someone would have any idea, please?

  2. #2
    Join Date
    May 2008
    Posts
    913

    Re: Passing file from Gedit (unix) to Windows Notepad

    These are probably the carriage returns (end of line) problematic.

    On unix, end line = LF (or CR, I do not know)
    On Windows end of line = CR and LF

    There are 2 utility on unix (and maybe also in Windows) to make changes
    Unix2Dos and Dos2Unix

  3. #3
    Join Date
    Aug 2009
    Posts
    54

    Re: Passing file from Gedit (unix) to Windows Notepad

    Quote Originally Posted by sergioKomic View Post
    These are probably the carriage returns (end of line) problematic.

    On unix, end line = LF (or CR, I do not know)
    On Windows end of line = CR and LF

    There are 2 utility on unix (and maybe also in Windows) to make changes
    Unix2Dos and Dos2Unix
    I installed Unix2Dos (under windows) and version 3 of .NET Framework and everything works. Thank you very much!

  4. #4
    Join Date
    May 2008
    Posts
    4,831

    Re: Passing file from Gedit (unix) to Windows Notepad

    If you do not want to get in trouble with these conversions, you can always use-Windows-equivalent notepad that supports the Unix newlines as Notepad2 (very light/simple and full of useful features). Notepad2 is an open-source text editor for Microsoft Windows, released under a BSD software license. Notepad2 features:
    • Auto indentation
    • Bracket matching
    • Encoding conversion between ASCII, UTF-8, and UTF-16 formats
    • Multiple undo/redo; rectangular block selection
    • Newline conversion, between DOS (CR/LF), Unix (LF), and Mac (CR) formats
    • Regular expression-based find and replace

Similar Threads

  1. Passing text from .cpp file to the Windows form
    By Zelman in forum Software Development
    Replies: 6
    Last Post: 28-06-2011, 10:50 AM
  2. Encryption of file before passing it over FTP.
    By Kapaali in forum Networking & Security
    Replies: 3
    Last Post: 09-05-2011, 07:06 PM
  3. “gedit” corrupted the .txt file
    By Laila in forum Operating Systems
    Replies: 3
    Last Post: 12-01-2011, 06:45 AM
  4. Write a file without passing in arguments
    By Miles Runner in forum Software Development
    Replies: 5
    Last Post: 25-02-2010, 03:45 AM
  5. VB.NET create Notepad File?
    By MandarM in forum Software Development
    Replies: 3
    Last Post: 18-02-2009, 08:08 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,576,104.79935 seconds with 17 queries