Thread: Recognizing a Sequence of Characters in a File Path

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    15

    Recognizing a Sequence of Characters in a File Path

    Hey, every one. I have a (hopefully) quick question here, and I'd appreciate any help you can offer. I really need to be pointed in the right direction here. Hopefully I can explain this clearly:

    I'm trying to write a program where you can insert the path of a file (C:\Program Files\CProgrammingRocks.txt as an example), and it'll look for a certain sequence of characters in the path, such as the word "Programming." When it recognizes the word "Programming" is in the path, it moves the file to the designated folder I specify in the program. In a sense, it's a kind of file manager.

    The problem I'm having is how to get the program to actually recognize the sequence of letters. Any ideas?

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    strstr
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  3. Immediate programming help! Please!
    By xMEGANx in forum C++ Programming
    Replies: 6
    Last Post: 02-20-2008, 12:52 PM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM