a c progam source code needed

  • hi

    i am working on a simple home based c project. I am a beginner in this and need a c program which when invoked will give me the names of the files in the directory.

    This should be accomplished by giving me the single name of the file as a variable, so i can manupulate or sort them as i want.

    just a simple basic code will do.

    thanks for ur time


  • LOL it is better to use ls. Anywasy see source code of ls it will guide you as well as teach you more :D


  • I really cant understand your question.
    If you wanted to display all the files in the current directory, you can pass the ls command to a function called system()


    #include
    main()
    {
    system("ls");
    }


    If this is not what you expected, then please reframe your question.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about a c progam source code needed , Please add it free.

    Google Adsense Profits Mixed In With Affiliate Marketing - Google Adsense Kids Eating Healthy