Hello making a small program that reads a text file then creates an ouput text file with the line number prefixed in front of the string.
Since the input file is called upon with fgets. I want to change the array of strings it is stored in before outputting it into the textile.
example Original File
Hello
How Are you?
good.
Output file
1 Hello
2 How Are you?
3
4 good.
The next step I wanted this program to take would to be not to print out blank lines. But as far as the original question I asked this works like a charm. Thanks for the insight @optimist.