2
Reply

Text extraction

sleggbengt

sleggbengt

May 17 2004 4:56 PM
2.1k
Hi! I'm trying to extract text from a file, but I've run into a problem. I want to take the text and use it into making a new map, with the name of the extracted text string. Of some reason the text contains more than just the text, but also some sort of EOL text looking something like: "Text\0\0\0\0\0...", where it seems like "\0" is one character. I'm wondering of it's possible to detect this kind of text and remove it, since I get complains when using this text into the name of the Map? When writing this in a MessageBox, all you see is: "Text". My first thought was that it is some kind of an EndOFLine character, but I'm stuck in how to get rid of this. I'm hoping that someone has an idea! Thank you!

Answers (2)