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:
“He who, from zone to zone,
Guides through the boundless sky thy certain flight,
In the long way that I must tread alone,
Will lead my steps aright.”
—William Cullen Bryant (17941878)
“The toddlers wish to please ... is a powerful aid in helping the child to develop a social awareness and, eventually, a moral conscience. The childs love for the parent is so strong that it causes him to change his behavior: to refrain from hitting and biting, to share toys with a peer, to become toilet trained. This wish for approval is the parents most reliable ally in the process of socializing the child.”
—Alicia F. Lieberman (20th century)
“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?)
“Since the last one in a graveyard is believed to be the next one fated to die, funerals often end in a mad scramble.”
—Administration in the State of Texa, U.S. public relief program (1935-1943)