Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7601073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:04:47+00:00 2026-05-30T23:04:47+00:00

i am new to visual c++ and i am learning oop ,i want ideas

  • 0

i am new to visual c++ and i am learning oop ,i want ideas or how i can go about this small project i want to create i hope it will help me,i want to write a Class to search the file for a given pattern (eg, content) using visual c++
i want to put a button called search and i want to put an editbox1 where i can enter the path of the where the file is located eg “c:\folder\file1_.txt”,then another editbox2 where i can enter words i want to search more like a the find button in word2007,i want it to work in such a way that when i enter the path where the file is located and click open the file should open and when i enter the word and click search it should show the string or word….i need ideas on how i can do this or how to do it your response will be highly appreciated, lets say i want something like this code below….

void SearchInFile(const std::string strToSearch, std::string& fileToSearch)
{
////....
}

int main()
{
SearchInFile("abc123", "myfile.txt");
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:04:48+00:00Added an answer on May 30, 2026 at 11:04 pm

    Instead of writing something from scratch to do this, you might be interested in the built-in std::string method find. You can read about it here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a new Visual Studio Setup project with VS 2008. I use it
I'm completely new to Visual Studio and I'm having some trouble getting a project
I am working on a personal project as a way of learning more about
So I'm pretty new to Visual Basic and inherited this VB6 code that i
I have Visual Studio 2010 with SP1 installed. I want to create a simple
New to C++ and learning from books so I can be quite pedantic or
I am new to silverlight and want to learn silverlight. I have installed Visual
I am learning C# AND Java and I often create small projects and programs
I've just got the new Visual Studio 2010 Ultimate and Javascript Intellisense is not
I am currently trying to set up a new visual studio 2008 solution while

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.