www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/08/22:33:11

From: "Matt Kris" <jdkris AT NOPOOPalpha DOT delta DOT edu>
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

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;
>i<r; i++) { read a line and discard it using an appropriate file input
>command }, 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019