Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90890

Re: Convert c file to csv file(unix format) in python

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: Convert c file to csv file(unix format) in python
Date 2015-05-19 19:36 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <mjg3c2$deg$1@reader1.panix.com> (permalink)
References <c9733ddb-7f97-4fcf-9dad-a4481d1d3e5d@googlegroups.com>

Show all headers | View raw


On 2015-05-19, umasrinath88@gmail.com <umasrinath88@gmail.com> wrote:

> I have a python script file which converts .hex file  to c file.
>
> Can anyone help me in converting .c file to csv file (unix format).

------------------------------------------------------------------------
#import os,sys
os.rename(sys.argv[1],sys.argv[1].replace('.c','.csv'))
------------------------------------------------------------------------

-- 
Grant Edwards               grant.b.edwards        Yow! I want a WESSON OIL
                                  at               lease!!
                              gmail.com            

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Convert c file to csv file(unix format) in python umasrinath88@gmail.com - 2015-05-19 09:30 -0700
  Re: Convert c file to csv file(unix format) in python Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org> - 2015-05-19 19:48 +0300
    Re: Convert c file to csv file(unix format) in python umasrinath88@gmail.com - 2015-05-19 10:14 -0700
  Re: Convert c file to csv file(unix format) in python Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-19 18:20 +0000
    Re: Convert c file to csv file(unix format) in python umasrinath88@gmail.com - 2015-05-19 12:26 -0700
      Re: Convert c file to csv file(unix format) in python Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-20 01:57 +0000
        Re: Convert c file to csv file(unix format) in python Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-22 19:48 +0000
  Re: Convert c file to csv file(unix format) in python Grant Edwards <invalid@invalid.invalid> - 2015-05-19 19:36 +0000

csiph-web