Computer Science, asked by shashikantverma977, 1 year ago

Write a code to print just the last line of a text file"data.txt".

Answers

Answered by killer980gmailcom
0

Answer:

I am trying to find out a way to select the last line of a text file using C (not c++ or c#, just C) and I am having a difficult time finding a way to do this, if anyone could assist me with this problem I would be very grateful, thanks! (btw for a good example of what i am trying to do, this would be similar what to tail -n 1 would be doing in bash)

Similar questions