dreamstreet
Programmer
Hello,
I have a text file and it contains something like:
text1
text2
text3
I know how to open/read the file but I want to assign the variable $text to random lines from that .txt file.
All I know is how to open/read so far:
open(F,"file.txt");
$text = <F>;
any help? Thanks
d
I have a text file and it contains something like:
text1
text2
text3
I know how to open/read the file but I want to assign the variable $text to random lines from that .txt file.
All I know is how to open/read so far:
open(F,"file.txt");
$text = <F>;
any help? Thanks
d