in reply to Re: Help regarding an alogrithm
in thread Help regarding an alogrithm

At step #3,for every file I open,I need to search for all the contents present in data.txt ,not only modem,basically for every .c I have to check if any of the dir names in data.txt are present,how do I match that ?am already in a for loop opening each and every .c files

Replies are listed 'Best First'.
Re^3: Help regarding an alogrithm
by samarzone (Pilgrim) on Mar 18, 2011 at 06:49 UTC

    Read the contents of "data.txt" in an array and run a loop on the array as step#1. This way you have all the directory names with you in the array, at the step #3. Run step #3 and #4 for all the names in array instead of just "modem"

    --
    Regards
    - Samar