1 |
2008/4/4, Denis <denis.che@×××××.com>: |
2 |
> |
3 |
> Does anyone know if a directory can be created from inside a C program |
4 |
> and how that is done? Suppose I run the code from my own directory |
5 |
> /home/mydir, and I want the code to create a directory |
6 |
> /home/mydir/mydata, where data is to be written, what would the format |
7 |
> for such a command be? Also, when you write files to |
8 |
> /home/mydir/mydata, do i put in something like "./mydata/filename" as |
9 |
> the filename to open/write? |
10 |
> |
11 |
> Many thanks! |
12 |
> Denis |
13 |
|
14 |
|
15 |
Take a look on system function, for example system("mkdir /home/mydir"); |
16 |
|
17 |
Cheers! |
18 |
|
19 |
-- |
20 |
> gentoo-user@l.g.o mailing list |
21 |
> |
22 |
> |