Re: "r"/"rb" & "w"/"wb" differences
- Posted by cense <cense at mail.ru> Aug 23, 2000
- 599 views
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/