Deleting rows in a file

Joined
Sep 17, 2007
Messages
4
Reaction score
0
Hi guys, I'm a SQL programmer, not very good in C.
From a C program, I want to open a file (done), remove the 3rd and 5th rows and then close it.
I go on reading the file char by char, usign \n delimiters to count rows, then when I'm in the row I want to cancel, how can I obtain my goal?
MTIA
Ronald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top