Steps To Process A File in Your Program
The five steps to use files in your C++ program are:
- Determine the type of link required.
- Declare a stream for the desired type of link.
- Attach the desired file to the stream.
- Now process as required.
- Close the file link with stream.
The complete example program:
/*To get rollnumbers and marks of the students of a class (get from the user) and store these details into a file called 'Marks.dat' */ #includeRead more about this topic: Data File
Famous quotes containing the words steps, process, file and/or program:
“I lie and wait for morning, and the birds,
The first steps going down the unswept street,
Voices of girls with scarves around their heads.”
—Philip Larkin (19221986)
“Consumer wants can have bizarre, frivolous, or even immoral origins, and an admirable case can still be made for a society that seeks to satisfy them. But the case cannot stand if it is the process of satisfying wants that creates the wants.”
—John Kenneth Galbraith (b. 1908)
“I have been a soreheaded occupant of a file drawer labeled Science Fiction ... and I would like out, particularly since so many serious critics regularly mistake the drawer for a urinal.”
—Kurt Vonnegut, Jr. (b. 1922)
“The Apache have a legend that the coyote brought them fire and that the bear in his hibernations communes with the spirits of the overworld and later imparts the wisdom gained thereby to the medicine men.”
—Administration in the State of Arizona, U.S. public relief program (1935-1943)