Article View: comp.sys.mac.programmer.codewarrior
Article #10Re: getline() dilemna - text or binary?
From: tran0119
Date: Mon, 04 Sep 1995 14:12
Date: Mon, 04 Sep 1995 14:12
12 lines
873 bytes
873 bytes
rick@iway.com (Rick Ross) writes:
>Mac - 0x0D (carriage return or '\r')
>UNIX - 0x0A (linefeed or '\n')
>DOS - 0x0D, 0x0A (carriage return/linefeed pair)
I thought you just had to do :
getline(buff, num_chars);
and that will take care of the line delimeter. Besides, if it's ANSI C,
the compiler should take care of those conversions (in text mode). Am I
missing something here?
Technical Details
Message-ID:
<tran0119.810223973@itlabs.umn.edu>Path:
arc1-ca.pugleaf.net!umn.edu!tran0119References:
<rick-0309951401280001@smurfy.irisdev.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.programmer.codewarrior,comp.lang.c++ Path: arc1-ca.pugleaf.net!umn.edu!tran0119 From: tran0119@itlabs.umn.edu () Subject: Re: getline() dilemna - text or binary? Message-ID: <tran0119.810223973@itlabs.umn.edu> Sender: news@news.cis.umn.edu (Usenet News Administration) Nntp-Posting-Host: eel.itlabs.umn.edu Organization: University of Minnesota, Twin Cities References: <rick-0309951401280001@smurfy.irisdev.com> Date: Mon, 4 Sep 1995 14:12:53 GMT