Regularni vyraz - binarni kod
Karel Zak
zakkr na zf.jcu.cz
Pátek Září 8 11:52:36 CEST 2000
>
>
> >
> > On Fri, 8 Sep 2000, Juraj Hiľovský wrote:
> >
> > > Mam dojem, ze do regularneho vyrazu sa to neda zadat. Pre takyto zapis
> by
> > > mal byt subor otvoreny binarny pre citanie aj zapis. napr.
>
> to bol preklep . ma byt "otvoreny binarne pre citanie aj zapis"
V pohode... ja pochopil jak to bylo mysleno.
> > Jaky je pod Linuxem (UN*Xem) rozdil, binarni vs. nebinarni soubor a
> > v jeho otevreni?
Moje otazka byla na neco jineho:
Text and Binary Streams
The GNU system and other POSIX-compatible operating systems organize
all files as uniform sequences of characters. However, some other
systems make a distinction between files containing text and files
containing binary data, and the input and output facilities of ANSI C
provide for this distinction. This section tells you how to write
programs portable to such systems.
^^^^^^^^^^^^^^^^
to omlouva pouziti 'b' :-)
In the GNU library, and on all POSIX systems, there is no difference
^^^^^^^^^^^^^
between text streams and binary streams. When you open a stream, you
get the same kind of stream regardless of whether you ask for binary.
This stream can handle any file content, and has none of the
restrictions that text streams sometimes have.
... to je ten Linux/POSIX fundamentalismus :-)
Karel
Další informace o konferenci Linux