V
VijaKhara
Hi all,
Please tell me how to create a file (using fopen) in a sub-folder
(such as sub-folder "Mygoal")? I tried
if ( ( fp = fopen ( "mygoal\myfile.tif", "wb" ) ) == NULL ) {
fprintf ( stderr, "cannot open file %s\n");
exit ( 1 );
}
But it doesn't work.
Also , is there anyone know how to get the current directory from C
codes?
Thanks
Please tell me how to create a file (using fopen) in a sub-folder
(such as sub-folder "Mygoal")? I tried
if ( ( fp = fopen ( "mygoal\myfile.tif", "wb" ) ) == NULL ) {
fprintf ( stderr, "cannot open file %s\n");
exit ( 1 );
}
But it doesn't work.
Also , is there anyone know how to get the current directory from C
codes?
Thanks