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 to, steps, process, file and/or program:
“History counts its skeletons in round numbers.
A thousand and one remains a thousand,
as though the one had never existed:
an imaginary embryo, an empty cradle,
...
emptiness running down steps toward the garden,
nobodys place in line.”
—Wislawa Szymborska (b. 1923)
“I honor most those to whom I show least honor; and where my soul moves with great alacrity, I forget the proper steps of ceremony.”
—Michel de Montaigne (15331592)
“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 candidate tells us we are the backbone of the State, and we know that it is true, not because we are possessed of certain endowed virtues, but because we are a majority and have the vote.”
—Federal Writers Project Of The Wor, U.S. public relief program (1935-1943)