Hello Geeks!
I have tried real hard trying to figure out the solution for why the getchar() and fputs() arent working in my program. I have already wasted so much time thinking and debugging about it and here I am after registering wid DANIWEB for the first time.
I will be attaching my program PROGRAM.C below, please help me out why in the function getline() the getchar() isnt working?? It is not accepting values from the user.
I will also be attaching another program SAMPLE.C which involves the same function called getline() which works in a perfect manner.
Please have the file LOV.TXT in the program directory and execute.
All help and suggestions appreciated.
Thank you.
Mohan!