I Haz Codes
Reading from a file requires you to understand how files work. In this lesson you will learn about file handles, open, close and readline.
Write a program which will read in numbers from a file and add them up displaying a total.
When you read each line in you must cast it to an int().
Create a file which contains 1 number from 1 to 100. Call this file “secret.txt”.
Write a program which will –