Reading filenames and creating folders

This is a discussion on Reading filenames and creating folders within the C++ Programming forums, part of the General Programming Boards category; Hey I was just wondering how I could read the filename of a folder or mp3. I want to be ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    39

    Reading filenames and creating folders

    Hey I was just wondering how I could read the filename of a folder or mp3. I want to be able to search the filename for a special character. Then create a folder unless folder already exist then just copy mp3 to the folder. TIA. Just needs some basic tips on where to get started with this.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    CreateDirectory()

    Not sure what you mean by "read the filename". If you mean enumerate all files/directories at a location, check out FindFirstFile() and FindNextFile().
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

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