Outputting Text in Unix Format

L

Lyle A. Sieren

C

Cor Ligthert [MVP]

Lyle,

What is it that you call Unixformat, are you talking about a local code
page, Unix is not only used on the Northpole so it holds as well many types
of code a character.

http://www.geocities.com/Athens/Academy/4038/graph/fontset.htm#b

Or are you talking about 127bits ASCII what is quiet uniform beside EBCDIC
however the last is as far as I know never used on Unix.

Give us some more information.

Cor
 
M

m.posseth

well isn`t it so that

Windows uses cariage return and linefeed VB contstant VBCRLF and Unix
uses only cariage return vb contstant VBCR as a newline char ??

hth

M. posseth
 
P

Phill. W

I tried using the following code but it left me with a line carriage return
in the file (0d0a)

outfilew.Write(group6)
outfilew.Write(Environment.NewLine)

If this is run on a Windows box, it will use vbCrLf (0d0a) for a line
break. Unix only wants vbLf (0a). Change your code to

outfilew.Write(group6)
outfilew.Write(vbLf)

(or, better still)

outfilew.Write(group6 & vbLf)

HTH,
Phill W.
 
M

m.posseth

i was already thinking was it now only the cariage return or the linefeed
??? :) just checked some verry old source ( VB 5 / 6 ) and yes Phil you
beated me before i could correct it

well it is so long ago that i had to write files to the system for
exchanging data with third party software

and yes we did write those files to Linux \ Unix file shares and they worked
perfectly ( without any strange conversions or what so ever )


by the way Phil W is that 'the' Phil Weber from the good old days on
freevbcode.com and now Devx ? , if so nice to see you again on the web
Phil

regards

Michel Posseth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top