Re: How to use variable in a file name

2009-09-29 Thread kks
On Sep 29, 9:43 am, Andre Engels  wrote:
> On Tue, Sep 29, 2009 at 3:35 PM, kks  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...@gmail.com

Thank You, it works
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to use variable in a file name

2009-09-29 Thread Andre Engels
On Tue, Sep 29, 2009 at 3:35 PM, kks  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...@gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list


How to use variable in a file name

2009-09-29 Thread kks
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"
-- 
http://mail.python.org/mailman/listinfo/python-list