Re: I/O Operations .....

2007-04-30 Thread Daniel Nogradi
> > > I am parsing an XML file and sending the output to two files.The > > > code asks the user to enter the input file,something like: > > > > > file_input = raw_input("Enter The ODX File Path:") > > > input_xml = open(file_input,'r') > > > > > Now suppose the user enters the path as : > > > C:\

Re: I/O Operations .....

2007-04-30 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, saif.shakeel wrote: > File writing can be done in that way,but my query is > something different.I have to rename the output file by default with > input file name(only changing the extension. Take a look at the functions in `os.path`. Ciao, Marc 'Blac

Re: I/O Operations .....

2007-04-30 Thread saif . shakeel
On Apr 30, 2:13 pm, "Daniel Nogradi" <[EMAIL PROTECTED]> wrote: > > I am parsing an XML file and sending the output to two files.The > > code asks the user to enter the input file,something like: > > > file_input = raw_input("Enter The ODX File Path:") > > input_xml = open(file_input,'r') > > > N

Re: I/O Operations .....

2007-04-30 Thread Daniel Nogradi
> I am parsing an XML file and sending the output to two files.The > code asks the user to enter the input file,something like: > > file_input = raw_input("Enter The ODX File Path:") > input_xml = open(file_input,'r') > > Now suppose the user enters the path as : > C:\Projects\ODX Import\Sample F

I/O Operations .....

2007-04-30 Thread saif . shakeel
Hi, I am parsing an XML file and sending the output to two files.The code asks the user to enter the input file,something like: file_input = raw_input("Enter The ODX File Path:") input_xml = open(file_input,'r') Now suppose the user enters the path as : C:\Projects\ODX Import\Sample Files\