Connecting Tech Pros Worldwide Forums | Help | Site Map

Converting File Formats (Unix to Windows)

VC
Guest
 
Posts: n/a
#1: Jun 7 '06
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
Guest
 
Posts: n/a
#2: Jun 7 '06

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@yahoo.com> wrote in message
news:eJaMVpniGHA.4204@TK2MSFTNGP02.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]


bcaller@gmail.com
Guest
 
Posts: n/a
#3: Jun 7 '06

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
http://www.caller.me.uk/Compilr

VC
Guest
 
Posts: n/a
#4: Jun 7 '06

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.googlegr oups.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]


Leon Lambert
Guest
 
Posts: n/a
#5: Jun 8 '06

re: Converting File Formats (Unix to Windows)


Try textimp from
http://whiskeyclone.sourceforge.net/downloads.php

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]
Closed Thread


Similar .NET Framework bytes