Hello geeks.
Today's exercise will be a little easier so that more people can participate. At the same time, you will notice that it will ask a lot of skills if you want to do things right. So without further ado, let's get started:
File Stats
This exercise is a variation on the first exercise we had on the forum:
Word Count.
This time, you are asked to give more tricky data on your file namely:
* Number of characters.
* Number of characters without the space char.
* Number of words.
* Number of paragraphs.
As a reference, you can test your program on
this file.
Feel free to create a GUI or deploy a webapp that does that, you don't have to be limited to the console. Oh, and you're free to use exotic languages. Bonus points for who does it in Erlang :D
Optional development for Unix developers:
The file should be sent as a command line argument, and your program should also have command line options:
-o or --output: specify a name for an output file.
-v or --verbose: shows the commands on the screen.
-h or --help: display a help.