We've made it to problem number 50!
This week's problems seem to be very word processor oriented. Given a file, print out the word count and the line count. For bonus points print out extra information about the file such as file size, file type, created date, and last modified date.
Comments:
Nick Krichevsky - 10 years, 7 months ago
Got it in 20 lines of Python. Sadly, date creation/modification date are identical on UNIX based systems, but according to the docs it should work just fine on Windows.
reply permalink
Ben - 10 years, 7 months ago
C#
reply permalink
Nick Krichevsky - 10 years, 7 months ago
Really like your idea of using a split function on the words here!
reply permalink
Pufe - 10 years, 7 months ago
wc FILENAME
comes with almost every unix shell.reply permalink