Instructions for assignment:
Write a program that opens the file, reads all the numbers from the file, and calculates the following:
A) The number of numbers in the file
B) The sum of all the numbers in the file (a running total)
C) The average of all the numbers in the file
I have made the code but I don't know how to open up my file name Random.txt, I have tried googling but I can't seem to figure it out. How can I make it so that it doesn't error but instead opens up the file