I don't understand when you say: "Really without more info there is not much more I can help with." I am willing to provide as much info as you need. what you have said already is helpful and is inline with my thinking. I wish to look in a direcory and display to the user all of the files in the directory to stdout so it would look something like this: The files in the "x" directory are: (lino.txt iozzo.txt lino.csv) then the user would type on the next line one of the file names returnd above and hit enter. the code would then open and parse the file requested and resave as another filename. Where do i put the directory/path to look in. I hope this is provides you with more information. Thanks, Lino
"Paul D. Kraus" <[EMAIL PROTECTED]> wrote: On Fri, May 07, 2004 at 05:38:38AM -0700, Lino Iozzo wrote: > please excuse my inability to understand this code. > > but what is: while ( <*> ) > > and where is the piece of code that tells what directory/path to look in? > > where does it go? I may be saying this wrong but the <*> globs the current directory. Meaning it iterates through all files. you could als do *.txt for all text files. This code does not contain dircetory / path so its what ever director the script is run it that it globs. Really without more info there is not much more I can help with. Paul