Using this code
===============

This file contains one function, 'GetLine()' to read a line of text from a text file. It will return 'true' if a line was read, and 'false' if it was not, at which time the file can be closed.

It was written and tested in Cinema 4D 2026, but it would be easy to convert it to other versions of Cinema (and might need no conversion at all).

There are two parameters: a pointer to a BaseFile object and a String object passed by reference. The loaded text is contained in that String and therefore does not need any further conversion.

To use it:

1) declare the function as a static function
2) call it from some other function passing the required parameters
3) handle the String as desired
4) go back to step 2) until GetLine() returns 'false'

Important
---------

This code is provided 'as is' and contains no warranty as to function, performance, or any other guarantee whatsoever.

Use it at your own risk!

Steve Pedler
https://www.microbion.co.uk
August 2026
