Data File - The Concept of File Modes

The Concept of File Modes

When processing a file, you will typically specify the type of operation you want to perform. The operation is specified using what is referred to as a file mode.The filemode describes how a file is to be used—to read from it, to write to it, to append it, and so on.

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

The following table lists the filemodes available and their meaning:

Read more about this topic:  Data File

Famous quotes containing the words concept, file and/or modes:

    “The concept of a person is logically prior to that of an individual consciousness. The concept of a person is not to be analysed as that of an animated body or an embodied anima.”
    —Sir Peter Frederick Strawson (b. 1919)

    “Probably nothing in the experience of the rank and file of workers causes more bitterness and envy than the realization which comes sooner or later to many of them that they are “stuck” and can go no further.”
    —Mary Barnett Gilson (1877–?)

    “There are two modes of transport in Los Angeles: car and ambulance. Visitors who wish to remain inconspicuous are advised to choose the latter”
    —Fran Lebowitz (b. 1951)