Searching for a string in a File

Tutorials Shared by the Internet Community


Searching for a string in a File

How to find the first occurance of a string within a file, includes sample function.


  • Total Hits - 33731

  • Total Votes - 101 votes

  • Vote Up - 44 votes

  • Vote Down - 57 votes

  • Domain -

  • Category - C and C++/File Manipulation

  • Submitted By - Shekhar

  • Submitted on - 2008-04-16 01:56:21


I started working on a project that was to replace the often times buggy and slow (and in my opinion just plain bad) Find Files/Folders function that comes with Windows (windows key + 'F'). In Windows XP the searching utility in the OS seems to be severly lacking in functionality. In previous versions of Windows I used i didn't find there to be too many problems.    More detail...

Broken  |   Save  |   Liked  |   Down

E-Books Store