Hi everyone, I'm taking a very basic C programming course, but I'm not very good at it. I was wondering if anyone could help me out with my assignment:
I have to give a file containing some data, write a program that reads the data from the file and prints it on the screen as it is, along with the line numbers.
Sample
Assume that the file test.txt contains the following data
Hello how are you?
ac39232
Enter the name of the file: test.txt
1. Hello how are you?
2. ac39232
Any ideas?