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:
“Now Morn her rosy steps in th eastern clime
Advancing, sowed the earth with orient pearl.”
—John Milton (16081674)
“To me, the whole process of being a brushstroke in someone elses painting is a little difficult.”
—Madonna [Madonna Louise Ciccione] (b. 1959)
“While waiting to get married, several forms of employment were acceptable. Teaching kindergarten was for those girls who stayed in school four years. The rest were secretaries, typists, file clerks, or receptionists in insurance firms or banks, preferably those owned or run by the family, but respectable enough if the boss was an upstanding Christian member of the community.”
—Barbara Howar (b. 1934)
“If you have a message you want to send to hell, give it to me; Ill carry it!”
—Administration in the State of Sout, U.S. public relief program (1935-1943)