> > > 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:\
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
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
> 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