Recognizing a Sequence of Characters in a File Path

This is a discussion on Recognizing a Sequence of Characters in a File Path within the C Programming forums, part of the General Programming Boards category; Hey, every one. I have a (hopefully) quick question here, and I'd appreciate any help you can offer. I really ...

  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
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    5,636
    strstr
    If I have eight hours for cutting wood, I spend six sharpening my axe.

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. Memory Address
    By kevinawad in forum C++ Programming
    Replies: 18
    Last Post: 10-19-2008, 10:27 AM
  4. Immediate programming help! Please!
    By xMEGANx in forum C++ Programming
    Replies: 6
    Last Post: 02-20-2008, 11:52 AM
  5. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21