![]() ![]() cout: ostream object that writes to the standard output.getline: Function that reads a line of input from a given istream into a given string. ![]() ≻≻: Operator used to read input from an istream object.cin: istream object that reads the standard input.Some types and facilities we have already seen: stringstream, wstringstream: Reads and writes a string.ostringstream, wostringstream: Writes to a string.istringstream, wistringstream: Reads from a string.≺sstream≻: Defines the types used to read and write in-memory strings.fstream, wfstream: Reads and writes a file.ifstream, wifstream: Reads from a file.≺fstream≻: Defines the types used to read and write named files.iostream, wiostream: Reads and writes a stream.istream, wistream: Reads from a stream.≺iostream≻: Defines the basic types used to read from and write to a stream.By default, the IO types and objects we have used for manipulating char data are connected to the user’s console window. Classes (such as strings) define similar IO operation to work on objects of their class type. It defines operations to read and write values of the built-in types. These types support IO to and from devices. Compound-file streams must be opened with STGM_SHARE_EXCLUSIVE.IO is handled by a family of types defined in the SL. In general, access restrictions on streams need to be stricter than those on their parent storages. ![]() For example, the permissions on this storage object restrict the permissions on its streams. There are restrictions on the permissions that can be given in grfMode. IStorage::OpenStream opens an existing stream object within this storage object in the access mode specified in grfMode. The stream was not opened because there are too many open files. The storage object has been invalidated by a revert operation above it in the transaction tree. The pointer specified for the stream object was not valid. The specified combination of flags in the grfMode parameter is not supported for example, when this method is called without the STGM_SHARE_EXCLUSIVE flag. The value specified for the grfMode parameter is not a valid STGM constants value. The stream was not opened due to a lack of memory. The stream with specified name does not exist. Return codeĪsynchronous Storage only: Part or all of the stream data is currently unavailable. This method can return one of these values. If an error occurs, * ppstm must be set to NULL. IStream pointer variable that receives the interface pointer to the newly opened stream object. Other modes you choose must at least specify STGM_SHARE_EXCLUSIVE when calling this method in the compound file implementation. For more information and descriptions of possible values, see STGM Constants. Specifies the access mode to be assigned to the open stream. This is a compound file restriction, not a structured storage restriction. The 000 through 01f characters, serving as the first character of the stream/storage name, are reserved for use by OLE. Syntax HRESULT OpenStream(Ī pointer to a wide character null-terminated Unicode string that contains the name of the stream to open. ![]() Opens an existing stream object within this storage object in the specified access mode. ![]()
0 Comments
Leave a Reply. |