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

Grant Edwards invalid at invalid.invalid
Tue May 19 15:36:34 EDT 2015


On 2015-05-19, umasrinath88 at gmail.com <umasrinath88 at 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            



More information about the Python-list mailing list