View Single Post
Old 4th July 2005, 01:12 PM   #3
epajarre
Junior Member
Member
 
Join Date: Jun 2003
Posts: 17
Default

Yes but in the AC3d File format:

---
*data %d

Optional - object data. Usually the object-data string for an object.
The parameter is an interger which specifies the number of characters
(starting on the next line) to be read.
---

So you cannot just simply read the data section line by line, instead you have to read %d characters from the file. (Of course you can still read it line by line, but in order to know where to stop you have to count the characters) And this causes the problem on how to count end of lines (2 characters in Dos/windows one character in Unix/Mac).

Now as I have been checking my code it looks like everything works ok if the count in data is the "UNIX" count of characters. Even if the file is actually "windows text mode". So maybe the only problem (if there is a problem) is in the documentation.
epajarre is offline   Reply With Quote