Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all . I have a code which reads all the files from in directory in a loop using the "readdir" command.At the end of the loop i want to ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    2

    Using the "readdir" command

    Hello all .
    I have a code which reads all the files from in directory in a loop using the "readdir" command.At the end of the loop i want to print a message saying "All the files have been read".
    I want to know whether the command returns any specific error code when all the files have been read.

    Thanks in advance

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,423
    What language are you coding in?
    Also, use the right section next time for a faster answer/reply.
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...