Thread: Finding out the name of a file, and changing directory

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    C n00b
    Join Date
    Jun 2004
    Posts
    8

    Question Finding out the name of a file, and changing directory

    [Edit]I am running Windows XP[/Edit]

    Hello. I have two questions:

    1. How would you find the name of the next directory to go into, so you could chdir() to it?
    1. How would you assign the name of the first file in directory to an array?
    3. How would you find the name of the next file in a given directory (findnextfile() maybe)?

    And if you have to use findfirstfile() and/or findnextfile(), could you give an example of them. Thanks a bunch.
    Last edited by nindoja; 06-22-2004 at 03:19 PM. Reason: left out information

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  3. Deleting / Changing a record in a text file
    By clearrtc in forum C Programming
    Replies: 9
    Last Post: 08-21-2006, 12:09 AM
  4. String parser
    By sand_man in forum C Programming
    Replies: 13
    Last Post: 08-13-2005, 10:33 AM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM