std::fgetws

From cppreference.com
< cpp‎ | io‎ | c
 
 
Input/output library
I/O manipulators
C-style I/O
Buffers
(deprecated in C++98)
Streams
Abstractions
File I/O
String I/O
Array I/O
(deprecated in C++98)
(deprecated in C++98)
(deprecated in C++98)
Synchronized Output
Types
Error category interface
(C++11)
 
 
Defined in header <cwchar>
wchar_t* fgetws( wchar_t* str, int count, std::FILE* stream );

Reads at most count - 1 wide characters from the given file stream and stores them in str. The produced wide string is always null-terminated. Parsing stops if end-of-file occurs or a newline wide character is found, in which case str will contain that wide newline character.

Parameters

str - wide string to read the characters to
count - the length of str
stream - file stream to read the data from

Return value

str on success, NULL on an error

See also

reads formatted wide character input from stdin, a file stream or a buffer
(function)
gets a wide character from a file stream
(function)
writes a wide string to a file stream
(function)