THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/04/2003 at 07:42, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform:
Language(s) : C.O.F.F.E.E ;
---------
Hi there,
Im trying to use C.O.F.F.E.E to read in some point position data from an external file. I am successfully reading in the data, but it is currently being read in as string data (using ReadChar()). I am having problems either reading in the data directly as some form of a float or converting it from a string to a float once it is read in. Either would do. I have seen the ReadLong() function in the documentation, but this does not seem to be reading in the values correctly. This may be due to my lack in understanding the function operation.
I've inserted (below) a sample of the data file I am trying to read in.
The part of the file that I am intrested in is as follows:
CONVSECTION name sec4 type DefaultSection
piece begx 79.9309899838865 begy -86.8901604003906 begz 18.354375 endx 79.9309899838865 endy -88.2553084003906 endz 18.304375 upy -0.0366015237812339 upz 0.999329939738069
It is the numerical parts of this that I want to read in.
As I said, I am currently only able to read this in, in a string format.
Hoping you or anyone can help.