Converting File Formats (Unix to Windows)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VC

    Converting File Formats (Unix to Windows)

    Hi,
    Greetings. Not sure if this is the right forum..... In case I should visit
    some other forum please let me know.

    Does Dot.NET provide a quick method/way to convert a UNIX text file to DOS
    format?

    Cheers!!!
    V


  • Kevin Spencer

    #2
    Re: Converting File Formats (Unix to Windows)

    The short and sweet of it is, Unix text files use "\n" (LineFeed) for CRLFs.
    Windows uses "\r\n" (CarriageReturn-LineFeed). Simplest explanation is,
    replace "\n" with "\r\n".

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    Professional Chicken Salad Alchemist

    A lifetime is made up of
    Lots of short moments.

    "VC" <letters2vc@yah oo.com> wrote in message
    news:eJaMVpniGH A.4204@TK2MSFTN GP02.phx.gbl...[color=blue]
    > Hi,
    > Greetings. Not sure if this is the right forum..... In case I should visit
    > some other forum please let me know.
    >
    > Does Dot.NET provide a quick method/way to convert a UNIX text file to DOS
    > format?
    >
    > Cheers!!!
    > V
    >[/color]


    Comment

    • bcaller@gmail.com

      #3
      Re: Converting File Formats (Unix to Windows)

      Yep, just open the file and replace each \n with \r\n
      ______________
      Compilr the online C, C#, VB.NET, Fortran compiler


      Comment

      • VC

        #4
        Re: Converting File Formats (Unix to Windows)

        Thanks for your time Caller and Kevin. Appreciate it much.
        I guess I have to do it the "Simple" way.... and replace "\n" with "\r\n"...

        Cheers!!!
        V!
        <bcaller@gmail. com> wrote in message
        news:1149717042 .925211.311300@ h76g2000cwa.goo glegroups.com.. .[color=blue]
        > Yep, just open the file and replace each \n with \r\n
        > ______________
        > Compilr the online C, C#, VB.NET, Fortran compiler
        > http://www.caller.me.uk/Compilr
        >[/color]


        Comment

        • Leon Lambert

          #5
          Re: Converting File Formats (Unix to Windows)

          Try textimp from


          It a simple fast little utility that adds a shell extention. Once
          installed you just right click on a file in windows explorer and chooses
          Win -> Unix or Win <- Unix

          Hope this helps
          Leon Lambert

          VC wrote:[color=blue]
          > Hi,
          > Greetings. Not sure if this is the right forum..... In case I should visit
          > some other forum please let me know.
          >
          > Does Dot.NET provide a quick method/way to convert a UNIX text file to DOS
          > format?
          >
          > Cheers!!!
          > V
          >
          >[/color]

          Comment

          Working...