Re: "r"/"rb" & "w"/"wb" differences
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
|
Not Categorized, Please Help
|
|