to write set of values to a file from python



hi everybody

i want to write a set of values to a file from python.
For ex:: the fields name will "comp name", "ip addr", "mac addr" etc.
And below all these fields i ll have the values for these fields.

it should look some what like this.

comp name ipaddr macaddr

jdasfhjashd 234.347.23.12
334.12.354.43.232
dfdsfusdaufisa 234.533.45.12 89.234.234.2343
sfdidsfoui 234.45.23.56
89.343.23.45.233

something like thiss.

so which is the best way to do this.
I mean which file format would be the best to choose , to dump all
these values from my python script.

Will it be a ".ini" file format? or ".xls" or ".txt" which will be the
better one.
so that later it will be easy for me to read this file.

thanks in advance for the help

regards
yogi

.



Relevant Pages

  • Re: sync dirs
    ... I've used that several times with great satisfaction, and it's fairly low-end - all you need is an FTP server at the other end. ... installer (or, at least, I have it somehow in my Windows Python 2.4, but ... not in my Cygwin Python 2.4. ...
    (comp.lang.python)
  • Re: Interpreter problem
    ... Of course you could just read and write the file in Python in text mode, that might get rid of the returns. ... There's probably a vim mode you can set to display the extraneous characters - it normally screams "^M" at me for files with carriage returns in them. ...
    (comp.lang.python)
  • Re: Integrate C source in a Python project
    ... billiejoex wrote: ... > I was wondering if it ispossible to integrate C source in a python ... > Best regards ... Prev by Date: ...
    (comp.lang.python)
  • Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type
    ... generate negative integers in Python if start ... Regards, ... Casey ... Prev by Date: ...
    (comp.lang.python)
  • Re: Success Natively Compiling Python-2.3.4 in Mingw?
    ... > Regards, Fernando ... Hello Fernando, ... check out the pyMinGW patch here: ... Python compiled under MinGW. ...
    (comp.lang.python)