Which of the following opens the file associated with the stream select one?
Ngày đăng:
24/12/2022
Trả lời:
0
Lượt xem:
15
Show
Predefined Types and Values - FILE, EOF, NULL and size_t
Preopened File Streams - EOF2, EOF3, and EOF4
Open File - NULL1 and NULL2
Flush File Buffer - EOF3
Close File - -11
Check or Clear File Status - NULL0, NULL1 and NULL2
Read Character from File - 03, 04 and 05
Write Character to File - EOF05, EOF06 and EOF07
Push Character Back into Buffer - EOF27
Read String from File - EOF41 and EOF42
Write String to File - EOF64 and EOF65
Read Binary Data from File - EOF76
Write Binary Data to File - EOF86
Read Formatted Input - EOF93, EOF94, EOF95
Write Formatted Output - EOF99, NULL00, NULL01
File Position - NULL12, size_t9, FILE0, NULL15, and NULL16
Alter File Buffer Size - NULL46 and NULL47
Temporary File Functions - NULL63 and NULL64
Which mode of file is used to open a file or stream for insertion?Here we use out mode that allows us to open the file to write in it. Default Open Modes : ifstream ios::in.
Which of the following file stream class is used for files?A file stream can be defined using the classes ifstream, ofstream and fstream that contained in the header file fstream. The class to be used depends upon the purpose whether the write data or read data operation is to be performed on the file.
Which method can be used to open a file in file handling?Opening a file
The fopen() function is used to create a file or open an existing file: fp = fopen(const char filename,const char mode); There are many modes for opening a file: r - open a file in read mode.
Which library function associates a stream with the file handle?The fdopen() function associates an input or output stream with the file that is identified by handle.
|