Hello jcl,

file_str_read produces a crash if the very first character in a file is '#'. Here are the steps necessary to reproduce the problem. First create a file test.txt with content like this:
Code:
#123456789

If you then execute the following snippet the engine will crash.
Code:
#include <acknex.h>

void main()
{
	var h = file_open_read("test.txt");
	if (h)
	{
		STRING* s = str_create("#128");
		file_str_read(h,s);
		printf("The content is:\n%s\nThe length is:\n%d",s->chars,(int)str_len(s));
		file_close(h);
	}
}

Best regards,
Uhrwerk


Always learn from history, to be sure you make the same mistakes again...