Practice: Appending Files

« Read the chapter

Q21. Append at the start?

IntermediateConceptual

Can append mode add text at the beginning of a file? Explain what to do instead.

Goal: Know limits of append

Q22. Daily visitor counter

AdvancedApplication

A program must record each visit with a line `visit N` where N is the visit number. Describe the plan, then show code that records three visits and prints the last line.

Goal: Application: counter