
retrieving txt file contents line by line
You can use the Line Input # command. To get the randomness, you would have
to do a random number of these line inputs and take the result from the last
one (ie, I think you have to open the file for input to use that command
whic himplies that the data can only be read sequentially)
Quote:
>Hi,
>i wondered if anyone in here knows how to access the contents of a text
file
>line by line randomly, that is, the program should be able to retrieve a
>random line from the text file and display it to the user.
>Thank you very much.
>Please reply me at: