Quote:
Originally Posted by weeshalll
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
|
if a file has been read in, an exit code of 0 is returned for each file read in. as it is a loop, im afraid a 0 for each line.
of course you can set a condition for the whole script.