...
Code Block | ||
---|---|---|
| ||
FILE * fptr = fopen(file_name, "w");
if (!fptr){
/* Handle Error */
}
|
...
Code Block | ||
---|---|---|
| ||
int fd = open( file_name, O_CREAT | O_WRONLY, file_access_permissions ); if (fd == -1){ /* Handle Error */ } |
...
...
Code Block | ||
---|---|---|
| ||
FILE * fptr = fopen(file_name, "w");
if (!fptr){
/* Handle Error */
}
|
...
Code Block | ||
---|---|---|
| ||
int fd = open( file_name, O_CREAT | O_WRONLY, file_access_permissions ); if (fd == -1){ /* Handle Error */ } |
...