xHarbour Reference Documentation > Function Reference |
Counts the number of characters in a text file ignoring white space characters.
FCharCount( <cFileName> ) --> nCharCount
The function returns the number of non white space characters contained in a text file.
The function counts the characters in an ASCII text file but ignores white space characters. These are Tab (Chr(9)), Line Feed (Chr(10)), Carriage return (Chr(13)) and Blank space (Chr(32)).
See also: | FCreate(), FOpen(), FLineCount(), FParse(), FWordCount(), MemoLine(), MlCount() |
Category: | File functions , xHarbour extensions |
Source: | rtl\fparse.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays the number of characters of // the example. PROCEDURE Main LOCAL cFileName := "FCharCount.prg" ? FCharCount( cFileName ) // result: 141 RETURN
http://www.xHarbour.com