in reply to Opening Text Files

Yes. You are on the right track.

What is needed is a clear statement of how you recognize which file to open. Is it the newest file? The file with the highest number in its filename? The only remaining file in its directory?

Once we get that clear we can help you write some code to grab that particular file without hardcoding the filename in your script.

Replies are listed 'Best First'.
Re: Re: Opening Text Files
by Perl Newby (Acolyte) on May 15, 2001 at 20:01 UTC
    The text file names will increase each time. For example, today's could be mlb_boxscore$0000100.txt and tommorow's will be mlb_boxscore$0000200.txt. The only thing that will change about the name of the file will be the numbers after the $. Hope this helps.