I want help in writing a C function that allows me to print a particular line in a text file. Is there a way to skip lines in a text file??

I suppose you are already aware of file read/write operations in C.
You can simply put condition in the while loop which you are using for reading the file line by line, and print only the particular lines you want...

Post your efforts for any help...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.