no space between two data in ep file
Posted: 01 Apr 2011, 07:26
Hi,
I am tring to read an ep file with Ruby in SketchUP under Windows like this:
b = file.gets()
c=b.split(" ")
but the result section of the ep file is like this:
0.208646094863E+000-0.513313617099E-001-0.915625940530E-003
0.180604789668E+000-0.240882759294E-001-0.872767876563E-003
no space between two data if the value is negative. What format (in C?) is used to output like this?
Could I get a space or How could I split them in Ruby now?
Thanks in advance
Cean
I am tring to read an ep file with Ruby in SketchUP under Windows like this:
b = file.gets()
c=b.split(" ")
but the result section of the ep file is like this:
0.208646094863E+000-0.513313617099E-001-0.915625940530E-003
0.180604789668E+000-0.240882759294E-001-0.872767876563E-003
no space between two data if the value is negative. What format (in C?) is used to output like this?
Could I get a space or How could I split them in Ruby now?
Thanks in advance
Cean