i need file procsseing and control break

hi to everybody i'm learnning c++ i have a project about control break page break and reading from a file!!!

can any body help me on how to read from a file and then display it on the screen. this is what i'm asked to do:

Step 1:
• Include a page break in the program. The program should produce a page break after 15 detail lines are printed. Include a page number in the header of each page.
• The page header will also display the name of the current student/current state. This is done as a quick reference to the report. The user doesn’t have to look at all the names on the page. They can just look at the top of the page to get an idea of the names that appear.
• Save and test the program. You will be using this portion of the program for project 8.
Step 2:
• Make a copy of your page break program.
• Include a control break in your program. See the printer spacing chart for details of the subtotals, grand totals and page breaks needed.

Scenario 1: Key field – state. Control break on change in state.
Paint Shop Sales Page Number: 99
Current state: XX

Name Cans needed Cost before Discount Cost after Discount Tax
XXXXXX XXXXXXXXXXX 99 9999.99 9999.99 9.99
XXXXXX XXXXXXXXXXX 99 9999.99 9999.99 9.99
Totals for state XX: 99 9999.99 9999.99 9.99

XXXXXX XXXXXXXXXXX 99 9999.99 9999.99 9.99
XXXXXX XXXXXXXXXXX 99 9999.99 9999.99 9.99
Totals for state XX: 99 9999.99 9999.99 9.99

Grand Totals: 99 9999.99 9999.99 9.99
Total Records: 999


thank you
Topic archived. No new replies allowed.