From: "LSC" Newsgroups: comp.os.msdos.djgpp Subject: Re: best way to read selected data from a file? Date: Tue, 26 Oct 1999 00:14:06 +0800 Organization: Unconfigured Lines: 17 Message-ID: <7v1vkh$4fv$1@news5.jaring.my> References: <3812949e_2 AT news DOT chariot DOT net DOT au> NNTP-Posting-Host: j32.jrc1.jaring.my X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ryan wrote in message news:3812949e_2 AT news DOT chariot DOT net DOT au... > Hi.... > > Im relatively new to C. > > I want to find a way to read a certain line from a text file plus also > perhaps read a certain line from a text file which contains certain words. You can use fread and fwrite to read from and write to random location from a file. But you need to specify the length you want to read if you use fread.