Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

Re: [gentoo-user] [OT] mkdir in a C program?

Ale

2008-04-04

Replies: Find Java Web Hosting

Author LoginPost Reply


2008/4/4, Denis <denis.che@gmail.com>:
Does anyone know if a directory can be created from inside a C program
and how that is done?  Suppose I run the code from my own directory
/home/mydir, and I want the code to create a directory
/home/mydir/mydata, where data is to be written, what would the format
for such a command be?  Also, when you write files to
/home/mydir/mydata, do i put in something like "./mydata/filename" as
the filename to open/write?

Many thanks!
Denis

Take a look on system function, for example system("mkdir /home/mydir");

Cheers!

--
gentoo-user@lists.gentoo.org mailing list


©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.