program C , Write a program count, c that reads an existing ASCII text he, and prints on screen

Write a program count, c that reads an existing ASCII text he, and prints on screen the number of bytes and the number of lines in the file. The name of the file is a command line argument. The number of lines in the file is not laiown beforehand, but each line can be at most 100 characters long. 

EXAMPLE: Suppose the ale myfile.txt contains the lines 

yeti ayes f atma 

The compiled program count .exe will be executed as follows: count. ex e myf ile.tx-t And the output on the screen would be: Number e bytes-20 Number of lines.. 

myfile.txt

ali

veli

ayse

fatma 

Tags: No tags