Hello everyone I need to know someone has created an aplication in Unix that creates files, erases files, modifys files, prints files and create directories but under C programming.
Thank you.
Hello everyone I need to know someone has created an aplication in Unix that creates files, erases files, modifys files, prints files and create directories but under C programming.
Thank you.
I did an application like that in an early CS class. I had a lot of fun learning about the unix system and the different structures I had to work with.
i know i have created one .. this code will only rename the filez that you want...
#include <stdio.h>
int main()
{
char oldname[80], newname[80];
printf("type file to rename:> ");
scanf("%s",&oldname);
printf("type newname:> \n",oldname);
scanf("%s",&newname);
if (rename(oldname, newname)== 0)
{
printf("file renamed successfull %s\n",oldname, newname);
}
else
{
fprintf(stderr,"renameing faild %s",oldname);
return(0);
}
}
enjoy cause im just as much as a begginer as you are =)
Hey xlordt thank you very much I will need al the help I can get on creating this project.