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



What is the correct method for handling text files which may (or may not) have a CR character at the end of each line ?

There seems to be a difference the windows/linux VS/gcc handle the situation.


My program works OK under VS, but in linux it appears to read the first line then returns EOF ?


Thanks
.



Relevant Pages

  • Re: getline and CR, LF, CR/LF, VS/Linux
    ... > What is the correct method for handling text files which ... > may have a CR character at the end of each line? ... Best regards, ...
    (microsoft.public.vc.stl)
  • Re: Using print with format to stdout generates unwanted space
    ... Based on your description of what you want to do, print is probably not the correct method of controlling output format. ... If an object is not a string, it is first converted to a string using the rules for string conversions. ... # unwanted space character being generated at the ...
    (comp.lang.python)
  • Re: getline and CR, LF, CR/LF, VS/Linux
    ... > What is the correct method for handling text files which may ... > have a CR character at the end of each line? ... one platform format and try reading in another, ...
    (microsoft.public.vc.stl)
  • Re: Uncanny #477... continuity snag.
    ... Apocalypse and somewhat seeing the world anew or whatever. ... Morrison's handling of Cyclops also may have led to Milligan's ... interesting version of the character than the one that appeared throughout ...
    (rec.arts.comics.marvel.xbooks)
  • Re: getline and CR, LF, CR/LF, VS/Linux
    ... > Gene Bushuyev wrote: ... >>>What is the correct method for handling text files which may (or may ... >>>not) have a CR character at the end of each line? ... The STL streams work correctly on all platforms as long ...
    (microsoft.public.vc.stl)