You are on page 1of 1

LABORATORY ACTIVITY #8

USING FILE HANDLING FUNCTIONS IN SOLVING SIMULATED BUSINESS APPLICATIONS

PROBLEM EXERCISE

1. Write a C program to count characters, words and lines in a text file in the song “Take
Me Home, Country Roads” Song by John Denver.
2. Write a C program to create a file and write data into file, a message will print if the
process is successful and Error message if otherwise.

SAMPLE OUTPUT:

Enter data to store in file:

File handling is easy....

Data stored successfully into the file...

3. Write a C program to append the content of one file to the end of another file in a Food
Delivery App.

SAMPLE MENU:

Adobo – 120.00
Menudo – 85.00
Ngohiong – 20.00
Siomai – 40.00

You might also like