Question
1. Assume that a file containing a series of integers is named number.dat and exists on the computer's disk. Create a program that displays all of the numbers in the file.
2. Assume that a file containing a series of names (as strings) is named names.dat and exists on the computer's disk. Create a program that displays the number of names that are stored in the file. Open file and read every string stored in it. each time you read a string, increment a counter variable. When you've read all strings from the file, the counter variable will include the number of names stored in the file.