Problem of the Day
A new programming or logic puzzle every Mon-Fri

File Read Percentage

Today's goal is to read in a text file line by line and estimate the number of the file left to read. Your program should print out the percentage read in of the total file. So if it's a 4 line text file where each line is equivalent in size then you'd print out 25% after reading in the first line.

Permalink: http://problemotd.com/problem/file-read-percentage/

Comments:

  • There are currently no comments. You can be first!

Content curated by @MaxBurstein