answersLogoWhite

0

A file mode describes how a file is to be used, to read, to write to append etc. When you associate a stream with a file, either by initializing a file stream object with a file name or by using open() method, you can provide a second argument specifying the file mode.

e.g. stream_object.open("filename",filemode);

Following is the list of filemodes available in C++

ios::in

ios::out

ios::binary

ios::ate

ios::app

ios::trunc

ios::nocreate

ios::noreplace

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is a gift file?

gift file shows the list of available gifts.


what are the various operations in linked list which can be performed on linked list?

In linked list, there are various operations in linked list that you can perform on linked list, eg: adding new elements, deleting elements, getting the first element, getting the next element after an element, any many others.


What command can be used to view a list of directory hierarchies, including the file system type?

The df utility displays a list of the directory hierarchies available on the file system. NFS is the file system type.


Compile a list of various models of processors available in the market?

no


Is there an automated way to get a list of pan-tone swatches from a .psd file?

no - but they are available on the web in many places


When you close a file what happens to the undo history list for that file?

When you close a file, the undo history list for that file is typically cleared or reset. This means that any changes made during the session are no longer available for undoing once the file is reopened. Depending on the application, some may offer the option to retain the undo history for future sessions, but generally, closing a file leads to the loss of that history.


What is the path and file name that contains a list of all directories made available on the network by NFS?

The correct answer would be etc/exports


What is the time complexity of skip list operations?

The time complexity of skip list operations is O(log n), where n is the number of elements in the skip list.


Which website lists the various Microsoft patches available?

Some websites that list the various Microsoft patches available include TechRepublic, KrebsonSecurity and PCWorld. One can always visit the Microsoft website for this information as well.


What is the internal process when a file is deleted from hard disc?

When a file is deleted from a hard disk, the operating system deletes the file's entry from the directory and it releases the space occupied by the file back to the pool of available free space. Most of the time, the actual contents of the file are not erased, but recovering (or undeleting) the file can be difficult because the freed space might be reused for somthing else, and because the information that binds the file's space into meaningful order is lost. The actual process involved depends on the operating system and type of file system. Sometimes, the operating system does not actually delete the file. It can move the file to a list of deleted files, making it available for recovery within a certain period of time or amount of activity. Usually, files in such a "deleted list" are then actually deleted at some later time based on time in the list and space demands on the file system.


Where can I get advice on past tax returns?

The IRS provides a list of site available for you to file your taxes for free. These places are a great place to get you started.


What is a hidden file?

A file that does not appear in the directory list.