LENGTH OF MACRO
Aim: To create a program in c implementing files to find the macrolength of a file.
- Create and open a file in read mode.
- Type words between macro and mend.
- Save the file and open it.
- Read its content.
- Increment the counter variable till the string comparison is not equal to zero.
- Decrement the counter variable once it is equal to zero.
- Print the counter variable which is number of lines.