Home |All Classes |Grouped Classes |Index |Search

Function read_string_text

Reads a string from the input source where the source is a text file.

	CL_String8 CL_IODevice::read_string_text(
		const char * skip_initial_chars,
		const char * read_until_chars,
		bool allow_eof = true);

Detailed description:

After reading the input source up to "read_until_chars", the file position is set to the first character that was not read. If the file contains NUL characters, then the input is read up to the NUL character, and the file position is set AFTER the NUL) param: skip_initital_chars = Ignore any of these characters at the start of the string. NULL = Do not ignore any characters param: read_until_chars = Read from the input until any of these characters are found. NULL = Read until the end of the file