Re: "r"/"rb" & "w"/"wb" differences

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Wed, 23 Aug 2000, Robert Craig wrote:
> cense writes:
> > if you are talking linux, then there is only an LF.
> > windoze = CRLF
> > linux = LF
> > does Eu know the difference Rob?
>
> In Linux there is no "text" mode for file I/O, there is only
> what DOS calls "binary" mode. Linux Euphoria programs
> can open files with "r" or "rb", it makes no difference.
> Same thing for "w" vs "wb" etc.
> Lines of text normally end with \n on Linux.
> In DOS they normally end with \r\n, but in "text" mode
> the \r is removed by the operating system
> on input, and restored on output. There is no point
> to this hocus pocus. It's just a fact of life
> on DOS (or Windows). It doesn't usually cause a portability
> problem for Euphoria programs, since you typically see just a \n
> at the end of each line on either system.
>
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com

good answer rob!

--
cense
a member of the
ak-software development team
http://ak-software.virtualave.net/

contract work for
Web Velocity IT inc.
http://www.webvelocity.ca/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu