[#bsl-basic_istringstream-read-0c]
= xref:bsl.adoc[bsl]::xref:bsl/basic_istringstream.adoc[basic&lowbar;istringstream]::read
:relfileprefix: ../../
:mrdocs:

Extraction without delimiters&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;istringstream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lowbar;&lowbar;istream&lowbar;type&
read(
    char&lowbar;type* &lowbar;&lowbar;s,
    streamsize &lowbar;&lowbar;n);
----

== Description

If the stream state is `good(),` extracts characters and stores them into _&lowbar;&lowbar;s_ until one of the following happens&colon;

* _&lowbar;&lowbar;n_ characters are stored
* the input sequence reaches end&hyphen;of&hyphen;file, in which case the error state is set to `failbit&verbar;eofbit&period;`

[NOTE]
====
This function is not overloaded on signed char and unsigned char&period;

====

== Return Value

&ast;this

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;s*
| A character array&period;
| *&lowbar;&lowbar;n*
| Maximum number of characters to store&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
