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:
“What had really caused the womens movement was the additional years of human life. At the turn of the century womens life expectancy was forty-six; now it was nearly eighty. Our groping sense that we couldnt live all those years in terms of motherhood alone was the problem that had no name. Realizing that it was not some freakish personal fault but our common problem as women had enabled us to take the first steps to change our lives.”
—Betty Friedan (20th century)
“All our steps are ordered by the LORD; how then can we understand our own ways?”
—Bible: Hebrew, Proverbs 20:24.
“Interior design is a travesty of the architectural process and a frightening condemnation of the credulity, helplessness and gullibility of the most formidable consumersthe rich.”
—Stephen Bayley (b. 1951)
“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)
“Who will join in the march to the Rocky Mountains with me, a sort of high-pressure-double-cylinder-go-it-ahead-forty-wildcats- tearin sort of a feller?... Git out of this warming-pan, ye holly-hocks, and go out to the West where you may be seen.”
—Administration in the State of Miss, U.S. public relief program (1935-1943)