Re: Opening & Reading Text Files

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu