!ßrendan![]() Member Posts: 21 From: Western Australia Registered: 07-04-2002 |
SeedRnd(MilliSecs()) random=Rnd(100) file=ReadFile("data.txt") Then line$=ReadLine( file ) Print line$ ----------------------------- OK, so far I've got this far, now here is the problem. 2 problems 1. Reading one of the 100 lines according to the random data=ReadFile("data.txt") 2. I need to wrap the text when it gets to the edge of the ------------------ |
!ßrendan![]() Member Posts: 21 From: Western Australia Registered: 07-04-2002 |
*.bb ------------------------- SeedRnd(MilliSecs()) number=Rnd(2) file=ReadFile("data.txt") Print number I've made some progress, so far this is my blitz basic code, and my data file. The problem I have is in this section of code. SeekFile (file, number) I want the random number to represent a line (e.g. 0=line1,1=line2,2=line3) eg. 012 0=line1 If you copy the code and create the data file you can get a better view of what I'm trying to say... I you can help it would be awesome! ------------------ |