Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

choosing a random line from a file in haskell

Name: Anonymous 2009-01-20 3:35

is there any way to do it that's not slow as fuck?

Name: Anonymous 2009-01-20 19:51

Holy shit.
Seek to random position in file, read backward until BOF or a newline, and then read forward until a newline. There's your line of text.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List