470,833 Members | 1,346 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

Converting File Formats (Unix to Windows)

VC
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
Jun 7 '06 #1
4 2221
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" <le********@yahoo.com> wrote in message
news:eJ**************@TK2MSFTNGP02.phx.gbl...
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

Jun 7 '06 #2
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

Jun 7 '06 #3
VC
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!
<bc*****@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
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

Jun 7 '06 #4
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:
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

Jun 8 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.