THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/02/2003 at 00:43, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
I'm reading a file one character at a time (for parsing out tokens). Being new to COFFEE, I have several questions which could not be answered by the documentation (experimentation is killing me - modifying, copying, opening C4D, checking, closing C4D, repeat).
1. How does one read single characters from a text file other than using BaseFile->ReadString(1, GE_XBIT)? The (Unicode) character read must be convertable to a string for concatenation with stradd() in order to "build" the token.
2. What exactly is considered a space by isspace()? Are tabs, spaces, newlines all considered in the check?
3. Following (2.), if isspace() only considers spaces or spaces and tabs, how does one check for the newline '\n' character? What is its Unicode value? Does COFFEE understand "\n" as a valid string? So far in testing, it appears not.
The differences between COFFEE and C++/Java have not been enumerated thoroughly. My knowledge of C/C++/Java are extensive (15+ years), which is making me feel more confused and inept as I can only fallback on that knowledge when gaps in information are present and find no correlations.
Thanks and please help,
Robert Templeton