Re: getline and CR, LF, CR/LF, VS/Linux



> I think a 'text' file is fairly obvious.

No it isn't. There is no standard on what constitutes a text file. There is
nothing "obvious" about it.
For instance CP/M, DOS,Windows commonly use ASCII 26 (Ctrl-Z) to indicate
that a text file has ended (and it comes from CP/M days in the 1970's) where
as UNIX/Linux commonly use ASCII 4 (Ctrl-Z) to indicate that a text file
has ended. That isn't "obvious".

Your experience is coloured by what you know from Windows & Unix.
On other platforms a text file can be vastly different.
Why expect that text files from different OS's should be automatically
handled by C or C++ libraries for a different OS?
You can see this by the accomodations that the old ISO C 1990 standard gives
to text file handling (so that Mini and Mainframe C compilers can be
implemented on hardware that has a lot of limitations).

> I don't care one way or the other.

Right. Fair enough.
But in that case you should refrain from giving your opinion on what is to
blame since you "don't care one way or the other".

Stephen Howe


.



Relevant Pages

  • Re: D programming language
    ... Don't care, maybe nice to have. ... Function overloading: Standard. ... Resizeable arrays: ... Multiple Inheritance: Big disadvantage! ...
    (comp.programming)
  • Re: the real issue in the Jones case
    ... medical board in the country without exception), ... say that Lyme patients do NOT have access to care. ... But it IS the standard of care. ... congenital Lyme is common, just argue that it happened here. ...
    (sci.med.diseases.lyme)
  • Re: IDSA GUIDELINES ATTEMPT TO NARROW THE DEFINITION OF LYME DISEASE AND PROMOTE A LEGAL STANDARD OF
    ... Phyllis...a medical "standard of care" and a LEGAL "standard of ... care" are two different,, entities. ... Lyme disease, it is essential that it be performed by well-qualified ... therapy has not proven to be useful and is not recommended for patients ...
    (sci.med.diseases.lyme)
  • Re: PA needs help passing Lyme legislation
    ... If there are two standards of care, ... disciplinary hearings...NOT the "standard of care". ... If a doctor is guilty of professional misconduct...based on the ... was of the person bringing the complaint to the attention of the ...
    (sci.med.diseases.lyme)
  • Re: getting out of LaTeX
    ... And, as the standard states, when there is agreement between the ... The ASCII standard of 1963 already ... 016 0E SO Shift Out ctrl-N ... the idea of files as byte streams. ...
    (sci.lang)