Re: How to create new python file with increament number, if doesn't exist?

2013-05-27 Thread Jens Thoms Toerring
Avnesh Shakya wrote: >I want to create a new python file like 'data0.0.5', but if it is already > exist then it should create 'data0.0.6', if it's also exist then next like > 'data0.0.7'. I have done, but with range, please give me suggestion so that > I can do it with specifying range. > I wa

Re: How to create new python file with increament number, if doesn't exist?

2013-05-27 Thread Avnesh Shakya
Thanks On Mon, May 27, 2013 at 4:19 PM, Denis McMahon wrote: > On Mon, 27 May 2013 02:27:59 -0700, Avnesh Shakya wrote: > > > I want to create a new python file like 'data0.0.5', but if it is > > already exist then it should create 'data0.0.6', if it's also exist > > then next like 'data0.0.7'.

Re: How to create new python file with increament number, if doesn't exist?

2013-05-27 Thread Denis McMahon
On Mon, 27 May 2013 02:27:59 -0700, Avnesh Shakya wrote: > I want to create a new python file like 'data0.0.5', but if it is > already exist then it should create 'data0.0.6', if it's also exist > then next like 'data0.0.7'. I have done, but with range, please give > me suggestion so that I can do

How to create new python file with increament number, if doesn't exist?

2013-05-27 Thread Avnesh Shakya
hi, I want to create a new python file like 'data0.0.5', but if it is already exist then it should create 'data0.0.6', if it's also exist then next like 'data0.0.7'. I have done, but with range, please give me suggestion so that I can do it with specifying range. I was trying this way and it'