Thread: getting current working filename

  1. #1
    Unregistered
    Guest

    getting current working filename

    I know that you can get the current working directory by using getcwd or getdcwd. It there a way to get the current working filename and store it into a char array?

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    203
    if you use
    Code:
    int main(int argc, char *argv[] )
    argv[0] should contain the filename

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple program not working, don't know why
    By Bakster in forum C Programming
    Replies: 11
    Last Post: 01-29-2009, 01:56 PM
  2. illegal function overloading????
    By Mr_Jack in forum C++ Programming
    Replies: 3
    Last Post: 12-17-2003, 01:03 PM
  3. compiler build error
    By KristTlove in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 10:16 AM
  4. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM
  5. Doubly Linked Lists ???????
    By Magica in forum C Programming
    Replies: 5
    Last Post: 05-04-2003, 12:14 AM