Make a function read the file() that reads animal names from a file animal.txt into an array[].
Fantastic news! We've Found the answer you've been seeking!
Question:
Make a function read the file() that reads animal names from a file animal.txt into an array[]. ask the user to enter the name of an animal into the name[]. Make a function check() that accepts array[] and animal that checks if the animal entered by the user is present in the file or not. Display the output on the console.
Sample Output:
Related Book For
Operating Systems Internals and Design Principles
ISBN: 978-0133805918
8th edition
Authors: William Stallings
Posted Date: