I was a little bit too quick with my last post.
Actually there is still a problem that I just discovered.

And it is about here:
Quote:

STRING* unicode_string = ascii_to_unicode("test1");
file_find(fhandle,unicode_string);


The unicode_string is working and can get loaded into a TEXT*-object. So that is working.

But file_find does not exactly work the way intended.
Basically it stops searching as soon as it finds the first letter/number (compared from my unicode_string) in my textfile.

For example, my textfile looks like:
test1 = hello;
test2 = goodbye;

My unicode_string contains "test2", so that is where I want file_find to go.

Buuut as soon as file_find hits the letter "t" from 'test1' it's thinking: "Hey I found the first letter, this must be the right one".
This means that it only compared the first letter. I wonder how I can fix that smirk