Slide 5.12: Reading a stream of fields (cont.) Slide 5.14: Record structures Home |
s
. Characters are extracted until (n–1
) characters have been extracted. An ending null character is automatically appended at the end of the content stored in s
.
c
in string
.
get
pointer.
string1
to string2
character by character. It returns
< 0
if string1
is less than string2
,0
if string1
is the same as string2
, or> 0
if string1
is greater than string2
num
characters of source to destination.
If the end of the source is found before num
characters have been copied, destination is padded with zeros until num
characters have been written to it.
fstream::in | fstream::outthough only output commands are used afterwards.