Retrieving a line at random from a file

Retrieving a line at random from a file 1.0

Retrieving a line at random from a file 1.0 Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 409
  • Released: Jun 4, 2007

Retrieving a line at random from a file 1.0 Description

This procedure reads through a file of unknown size once, returning a random line from the file.

Retrieving a line at random from a file 1.0 Keywords

Retrieving a line at random from a file Bookmark

Hyperlink code:
Hyperlink for Forum code:

Retrieving a line at random from a file 1.0 Script Download Notice

Top 4 Download periodically updates information of Retrieving a line at random from a file 1.0 script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Retrieving a line at random from a file 1.0 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

AWK like text processing

AWK is a text processing language that makes it easy to "search files for lines [...] that contain certain patterns. When a line matches one of the patterns, awk performs specified actions on that line." (GNU Awk User's Guide). This script provides a way ...
Python

Doctester for your documentation

The doctester extracts code from stdin and tests it using the doctest module in the standard library. It can be invoked from the command line, but it is best called from you editor of choice. ...
Python

Format a text block

This function formats a block of text. The text is broken into tokens. (Whitespace is NOT preserved.) ... reassembled at the specified level of indentation and line width. A string is returned. ...
Python

Less

... pager. A pager is a program that displays text files. Other pagers commonly in use are more and ... shell and the MS-DOS command prompt to display files. Windowed environments like the Windows and Macintosh desktops ... much, since they have other methods for viewing files. Less is not an editor. You can't change ...

Text transformer with conditions

... script uses an efficient way to tranform a file's text to something else, with conditions for few lines. ...
Python