By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,151 Members | 1,028 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,151 IT Pros & Developers. It's quick & easy.

Converting File Formats (Unix to Windows)

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.