Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #16904

Re: stream functions

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: stream functions
Date 2012-02-07 18:39 -0800
Organization None to speak of
Message-ID <lnhaz2m4k5.fsf@nuthaus.mib.org> (permalink)
References <4f319cb1$0$1049$bbae4d71@news.suddenlink.net> <jgsar8$g8o$1@reader1.panix.com> <4f31b446$0$1075$bbae4d71@news.suddenlink.net> <4f31b4b3$0$593$bbae4d71@news.suddenlink.net> <4f31d254$0$18693$91cee783@newsreader03.highway.telekom.at>

Show all headers | View raw


Johann Klammer <klammerj@NOSPAM.a1.net> writes:
> Bill Cunningham wrote:
>> [snip]
>>
>> So is ftell and fseek for binary files?
>>
>> Bill
>>
>>
> They are _all_ for binary files.
> Text files are a subset of them
>
> ...
>
> Except in windows, where newline-carriage-return conversion may be going 
> on if you do not fopen() with "rb" or "wb"

And except for systems based on neither Unix nor MS-DOS/Windows, where
the distinction between binary and text files might be even more
significant.  C's stdio is very deliberately designed to work on such
systems.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
    Will write code for food.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

stream functions "Bill Cunningham" <nospam@nspam.invalid> - 2012-02-07 16:50 -0500
  Re: stream functions John Gordon <gordon@panix.com> - 2012-02-07 23:07 +0000
    Re: stream functions "Bill Cunningham" <nospam@nspam.invalid> - 2012-02-07 18:31 -0500
      Re: stream functions "Bill Cunningham" <nospam@nspam.invalid> - 2012-02-07 18:33 -0500
        Re: stream functions Johann Klammer <klammerj@NOSPAM.a1.net> - 2012-02-08 02:39 +0100
          Re: stream functions Keith Thompson <kst-u@mib.org> - 2012-02-07 18:39 -0800
            Re: stream functions "Bill Cunningham" <nospam@nspam.invalid> - 2012-02-07 22:36 -0500
              Re: stream functions Nobody <nobody@nowhere.com> - 2012-02-08 19:43 +0000
          Re: stream functions Barry Schwarz <schwarzb@dqel.com> - 2012-02-07 21:01 -0800
      Re: stream functions John Gordon <gordon@panix.com> - 2012-02-08 15:13 +0000
        Re: stream functions "Bill Cunningham" <nospam@nspam.invalid> - 2012-02-08 15:54 -0500
          Re: stream functions John Gordon <gordon@panix.com> - 2012-02-08 21:09 +0000
            Re: stream functions "Bill Cunningham" <nospam@nspam.invalid> - 2012-02-08 17:37 -0500
              Re: stream functions John Gordon <gordon@panix.com> - 2012-02-08 23:16 +0000
                Re: stream functions Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-13 02:14 -0800
                Re: stream functions James Kuyper <jameskuyper@verizon.net> - 2012-02-13 05:53 -0500
                Re: stream functions Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-13 03:23 -0800
                Re: stream functions Markus Wichmann <nullplan@gmx.net> - 2012-02-14 21:50 +0100
              Re: stream functions "Heinrich Wolf" <invalid@invalid.invalid> - 2012-02-09 10:45 +0100
                Re: stream functions "Bill Cunningham" <nospam@nspam.invalid> - 2012-02-09 22:37 -0500
          Re: stream functions Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-13 02:17 -0800
      Re: stream functions gordonb.qxgs4@burditt.org (Gordon Burditt) - 2012-02-13 01:03 -0600
        Re: stream functions Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-02-13 08:23 +0000
        Re: stream functions Keith Thompson <kst-u@mib.org> - 2012-02-13 02:06 -0800
        Re: stream functions David Thompson <dave.thompson2@verizon.net> - 2012-02-18 23:12 -0500

csiph-web