Can anyone help me learn how to create a directory in C? Right now I have a program that writes to a file, and now I need to create a directory to store the file. My operating system is Windows XP. Sample programs, commands, links to tutorials will be greatly appreciated. Thank you!

mkdir() will create a directory. google for mkdir() to get more information.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.