Re: Opening & Reading Text Files
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Dec 02, 2006
- 542 views
On Fri, 01 Dec 2006 08:18:05 -0800, Rich Klender <guest at RapidEuphoria.com> wrote: > open("file"[FileNumber]".txt", "r") filename = sprintf("file%d.txt",FileNumber) open(filename,"r") If you want to zero-fill filenames, eg file01.txt or file001.txt, then replace %d with %02d or %03d. Regards, Pete