From: "Matt Kris" Newsgroups: comp.os.msdos.djgpp Subject: Re: Randon Function Date: Sun, 8 Feb 1998 22:11:05 -0500 Organization: Delta College Lines: 12 Message-ID: <6blsh6$4ik@alpha.delta.edu> References: <6bgtsb$h8o AT alpha DOT delta DOT edu> <6bgvt1$ruu AT freenet-news DOT carleton DOT ca> NNTP-Posting-Host: pm090-23.dialip.mich.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Paul Derbyshire wrote in message <6bgvt1$ruu AT freenet-news DOT carleton DOT ca>... >Easy. Obtain a random number r from 0 to 99. Open the file. Then for (i=0; >icommand }, then read a line and use that as the name. > How do I read different lines of a text file? If I knew that i could do the rest easily. Matt