NAG Library Manual, Mark 30.1
Interfaces:
FL
CL
CPP
AD
NAG CPP Interface Introduction
Namespace:
nagcpp
Namespace:
iomanager
Class:
IOManagerBase
Method:
read_rec
NAG CPP Interface
iomanager::IOManagerBase::read_rec
Keyword Search:
NAG Library Manual, Mark 30.1
Interfaces:
FL
CL
CPP
AD
NAG CPP Interface Introduction
Namespace:
nagcpp
Namespace:
iomanager
Class:
IOManagerBase
Method:
read_rec
▸
▿
Contents
1
Description
2
Specification
3
Arguments
© The Numerical Algorithms Group Ltd. 2020
Settings help
CPP Name Style:
Short (
impl_details
)
Long (
info::impl_details
)
Full (
nagcpp::info::impl_details
)
1
Description
read_rec
reads text from the Input channel associated with
unit_number
into
rec
.
IOManagerBase::read_rec
returns the number of characters actually read from the Input channel
2
Specification
types::f77_integer
read_rec
(
types::f77_integer
unit_number
,
std::string
rec
,
types::f77_integer
nchar
= -1
)
3
Arguments
1:
unit_number
–
types::f77_integer
Scalar
On entry
: unit number to read from.
2:
rec
–
std::string
Scalar
On exit
: the text read from
unit_number
.
3:
nchar
–
types::f77_integer
Scalar
On entry
: number of characters to read from
unit_number
. If
read_rec
<
0
then text should be read until either EOL or EOF has been reached.
Default:
-
1
© The Numerical Algorithms Group Ltd. 2020