Hi

I have a file with format like

8520,9.19E+02
8521,9.15E+02

where 9.19E+02 is equal to 918 and 9.15E+02 is equal to 915

I need import this file into another program.But it doesn't this "E" format that is generally..can anyone suggest a way to convert this entire file to format to a file which can be imported in to another software...

between my output file shows these characteristics

for each_line in this_out_file:
   print(each_line[0],end='')
   print(each_line[1],end='')
   print(each_line[4],end='')

the obtained output is

8 5 ,
8 5 ,

stating that entire line is stored as string

split, like I mailed you in first post but now from ',', and convert to int or float each value.

You can also use eval().

x=eval("9.15E+02")
print x, type(x)  ## --> 915.0 float
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.