Thread: make directories

  1. #1
    That weird Java guy xniinja's Avatar
    Join Date
    Jun 2010

    make directories

    Hello every one, I was having a problem with making directories in c I tried using
    pfile = fopen("C:\\Program Files\\reminder\\data\\backup1.xls", "a");
    where it would actually make a the directory while it made the file but that doesn't work
    if anyone could help explain a way to do this that would be great, i looked at msdn but it doesnt make any sence to me.
    (<----- I am a noob)
    can you please explain it to me like I am a 5 year old
    thanks in advance.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    You will need to use something like mkdir, which isn't an ANSI C function, because C doesn't care about file systems per say. Figure out what compiler you are using, then go look up your compiler + make directory on teh interwebs.

    Hope is the first step on the road to disappointment.

  3. #3
    That weird Java guy xniinja's Avatar
    Join Date
    Jun 2010
    does mkdir work for windows

  4. #4
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    does mkdir work for windows
    Yes, as a matter of fact it does.
    Consider this post signed

  5. #5
    Join Date
    Dec 2009
    Windows has a Unix subsytem for most of ANSI and POSIX. There's an optional update, Interix, that adds support for pthreads and everything that isn't supported by default.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make a Packet sniffer/filter?
    By shown in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2009, 09:51 PM
  2. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  3. make all rule
    By duffy in forum C Programming
    Replies: 9
    Last Post: 09-11-2003, 01:05 PM
  4. Question about atheists
    By gcn_zelda in forum A Brief History of
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM
  5. Replies: 6
    Last Post: 04-20-2002, 06:35 PM