Python_2  1.0
Functions | Variables
_04b_wc Namespace Reference

Count lines, characters, bytes, sentences, and words of a text file. More...

Functions

def wc (filename, prt=True)
 
def main (argv=None)
 

Variables

int dashLen = 100
 

Detailed Description

Count lines, characters, bytes, sentences, and words of a text file.

Author
Paulo Roma
Since
29/12/2008
See also
https://dzone.com/articles/count-lines-sentences-and

Function Documentation

◆ main()

def _04b_wc.main (   argv = None)
 Main function 

References Getch.getch, and wc().

◆ wc()

def _04b_wc.wc (   filename,
  prt = True 
)
Counts lines, setences, and words of "filename". 
   "prt" controls the echoing of the lines on the screen.

Referenced by main().

Variable Documentation

◆ dashLen

int _04b_wc.dashLen = 100