can any one help, need a program to search a particular word in a file (its a .dat file ) then count the number of it occurrences in the whole file, output the count on console. I have not worked with programs before..........

Sorry, we don't give homework help without proof of effort on your part, and we don't give away homework answers. If you want to cheat, go elsewhere.

you can use dos.h header file and run the dos search command ,,,

You may use function system("dos command name");
..........:ooh:

commented: that would be a stupid solution, except for the fact that it won't work. so therefore it's just "stupid" -2
Be a part of the DaniWeb community

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