xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

FWordCount()

Counts the words in a text file.

Syntax

FWordCount( <cFileName> ) --> nWordCount

Arguments

<cFileName>
This is a character string holding the name of the text file whose words to count. It must include path and file extension. If the path is omitted from <cFileName>, the file is searched in the current directory.

Return

The function returns the number of words contained in a text file.

Description

The function counts the words in an ASCII text file. Words are recognized as sequences of characters delimited by blank spaces (Chr(32)).

Info

See also:FCharCount(), FLineCount()
Category: File functions , xHarbour extensions
Source:rtl\fparse.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe