------=_Part_8871_29655931.1207321606181
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
2008/4/4, Denis
>
> 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
>
>
------=_Part_8871_29655931.1207321606181
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
------=_Part_8871_29655931.1207321606181--
--
gentoo-user@lists.gentoo.org mailing list