Word Count Sample

This document contains the release information for the NGWS Word Count sample.  You will find the following sections below:

 

 

Sample Overview

This sample offers a nice introduction to the base class library. It shows how to create an application that opens multiple files (specified on the command line) and counts each file’s bytes, characters, words, and lines. The results from each file and the total of all files are displayed. 

 

Location of the Sample

This sample list located in the WordCount directory of the NGWS SDK sample directories.

For Example:

C:\Program Files\NGWSSDK\Samples\WordCount

 

Building the Sample

In order to properly build and run this sample, the following steps need to be performed prior to building and running the sample…

·         Type NMAKE All from the command line.

For Example:

C:\Program Files\NGWSSDK\Samples\WordCount\:>NMAKE All

 

Running the Sample

In order to run this sample, follow the instructions listed below.

For Example:

C:\Program Files\NGWSSDK\Samples\WordCount\:>WordCount Readme.htm