Tag Info

New answers tagged


You can try my open source TextParser class in HaXe: http://bruce-lab.blogspot.com/2014/11/textparser-simple-class-for-parsing.html (tutorial) The class is very simple, functions ReadInteger() and ReadString() can be used to get string or integer from a text file. Function GotoNextLine() can move the position of the file pointer to the next line. The class ...


First parse the text to a list with something like this private function parseText(text:String):Array<String> { var dialog:Array<String>=new Array(); var lines:Array = text.split("\n");// split in all lines var line:String; while (lines.length>0) { line= ...

Top 50 recent answers are included