How to use variable in a file name

kks kkis.theking at gmail.com
Tue Sep 29 14:56:41 EDT 2009


On Sep 29, 9:43 am, Andre Engels <andreeng... at gmail.com> wrote:
> On Tue, Sep 29, 2009 at 3:35 PM, kks <kkis.thek... at gmail.com> wrote:
> > if myFile variable contains the actual filename then how can i open a
> > file for wirte so that complete filename appears as
> > "actualname_kks.txt"
>
> open(myFile + "_kks.txt", "w")
>
> --
> André Engels, andreeng... at gmail.com

Thank You, it works



More information about the Python-list mailing list