[ Back to the overview Matrix ]

Test case : Type "file"

Write an application that takes the name of a text file (preferably as command line parameter) and displays all the lines to the screen. This should be an console application.

It is not necessary to check for non-text files, unusual linebreaks, wildcards, file access errors, etc. Lines have be wrapped so that all printable characters in the file get displayed on screen.

What is tested: basic file access and screen output.

Contributed by Andreas Koch, mail at kochandreas.com