STREAM
A stream is a sequence of bytes in NTFS file system stream contain that data is written in a file and that gives more information about a file that attributes and properties
e.g
U can creat a stream that contain search keywords or the identity of the user account that creat file
OPERATION ON FILE STREAM
to handle large amount of data in such situation when you need to use some sceondry storage device to store the data
Program can be written to perform read and write operation
FILE HANDLING CLASSES
ofstream . 【signifies the output stream and is applied to creat files for writing information
Ifstream. 【signifies the input file stream and is applied for reading information from files
fstream . 【signifies file stream generally and has capabilities for repersenting both ofstream and ifstream
All the above three classes derived from fstreambase and form iostream classes to specifically to manage disk file
OPENING FILE
The first operation generally done on abject of classes to use file is opening file.
An open file is repersented within program by a stream and any input or output task
Performed on this stream will be applied to the physical file associated with it
CLOSING FILE
When any program terminates it autonatically flushes out all the stream releases all the allocated memory and closes all open file
use
A stream is a sequence of bytes in NTFS file system stream contain that data is written in a file and that gives more information about a file that attributes and properties
e.g
U can creat a stream that contain search keywords or the identity of the user account that creat file
OPERATION ON FILE STREAM
to handle large amount of data in such situation when you need to use some sceondry storage device to store the data
Program can be written to perform read and write operation
FILE HANDLING CLASSES
ofstream . 【signifies the output stream and is applied to creat files for writing information
Ifstream. 【signifies the input file stream and is applied for reading information from files
fstream . 【signifies file stream generally and has capabilities for repersenting both ofstream and ifstream
All the above three classes derived from fstreambase and form iostream classes to specifically to manage disk file
OPENING FILE
The first operation generally done on abject of classes to use file is opening file.
An open file is repersented within program by a stream and any input or output task
Performed on this stream will be applied to the physical file associated with it
CLOSING FILE
When any program terminates it autonatically flushes out all the stream releases all the allocated memory and closes all open file
use
No comments:
Post a Comment