Hi.
Hi
My program takes the user input of the location where the directory need to be created. I found Windows API: CreateDirectory() but then for Linux i need to write some other function. Is their any function which can work for both operating systems.
Kindly help

Use system('mkdir');

Use system('mkdir');

No need for the system call -- just call mkdir function.

Be a part of the DaniWeb community

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