butterflyTee 0 Light Poster

import sys :o

def main():
usage = 'Usage: %s [options] <file name>\n' % sys.argv[0]
options = 'Options:\n'
options = options + ' -c, --chars print the character counts\n'
options = options + ' -l, --lines print the newline counts\n'
options = options + ' -w, --words print the word counts\n'
usage = usage + options

countChars = 0
countWords = 0
countLines = 0

main()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.