Thread: Creating a Menu-Browser in Unix

  1. #1
    Unregistered
    Guest

    Lightbulb Creating a Menu-Browser in Unix

    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.

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    42
    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.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    227
    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 =)

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    4

    Thanx

    Hey xlordt thank you very much I will need al the help I can get on creating this project.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  4. Creating a menu system
    By ICool in forum C Programming
    Replies: 9
    Last Post: 09-17-2007, 12:18 PM