[Tutor] dynamically creating files

Gonçalo Rodrigues op73418 at mail.telepac.pt
Fri Nov 14 06:54:40 EST 2003


On Fri, 14 Nov 2003 22:38:52 +0800, you wrote:

>I am creating a program and have come to a problem. 
>I wish to write a class that handles file objects, ie opening, writing to,
>and closing a file. I wish to dynamically create the file name, as each
>instance would have its own file too use for processing. I am not sure on
>what syntax is required to derive a filename from the 'self' instance. 
>Any tips/ TIA
>

Why bother? Isn't the builtin file object enough?

With my best regards,
G. Rodrigues




More information about the Tutor mailing list