Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_filechr() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_FILECHR()

 DESCRIPTION

 C_FILECHR() counts the number of occurrences of the specified
 character(s) in the given file handle.

 SYNTAX

 C_FILECHR(handle, string)

 PARAMETERS

 handle (N) is the file handle of an open file to search for the
 given string.

 string (C) is the string to search for in the given file handle.
 The string argument can consist of a single character such as a
 line feed (ASCII 10) or multiple characters.

 RETURNS

 C_FILECHR() returns the number of occurrences of the specified
 character(s) found in the file.

 EXAMPLES

 f1 = fopen("test.txt")

 c_filechr(f1, ".")  --> 65      && 65 periods (.) in file


See Also: C_FILELN()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson