Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 540 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 540 Bytes

Assessment 10: File I/O

Objective

Learn how to read from and write to files in C, a crucial skill for many applications.

Instructions

  1. Create a file named assessment_10.c.

  2. Write a C program that:

    • Reads integers from a file named input.txt.
    • Sums the integers and writes the result to a file named output.txt.
  3. Compile and run the program.

Expected Output

Contents of output.txt: Sum = 55

Skills Covered

  • File reading and writing.
  • Handling file pointers.
  • Basic file error handling.