C++
wchar_t * fgets( wchar_t * pBuf, int nChars );
Description
Reads a line of text data into a buffer from the file associated with 'this' object. Input string formats will be converted to wide string before they are passed back to the caller.
This method returns a pointer to the buffer containing the string that is read from the file. It returns null if no data has been read or if there was an error.
Parameters
Parameters | Description |
---|---|
pBuf | Output pointer to a buffer where the null-terminated string will be read in |
nChars | Input number of characters pBuf can hold, including the null-terminating character |
Links
Previous Declaration
TCHAR * fgets(
TCHAR * pBuf,
int nChars
);