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:
“They were steps for me, and I climbed up over themto do so I needed to go on past them. But they supposed I wanted to settle down on them.”
—Friedrich Nietzsche (18441900)
“Every modern male has, lying at the bottom of his psyche, a large, primitive being covered with hair down to his feet. Making contact with this Wild Man is the step the Eighties male or the Nineties male has yet to take. That bucketing-out process has yet to begin in our contemporary culture.”
—Robert Bly (b. 1926)
“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?)
“Hear me, he said to the white commander. I am tired. My heart is sick and sad. Our chiefs are dead; the little children are freezing. My people have no blankets, no food. From where the sun stands, I will fight no more forever.”
—For the State of Montana, U.S. public relief program (1935-1943)