Linux programming

Develop a program to display file given on the command line to STDOUT, please give sample program

Is this a homework assignment?
Why reinvent cat ?
What about this is Red Hat, or Linux specific?

In your class are you supposed to open a file for read, read every line and use echo to show the contents. If so you need to for loop. Of course cat works really well if your instructor only let you use cat... :rolleyes:

This looks like a really simple assignment. :cool: