text file support?

Community Forums/Monkey Talk/text file support?

mulawa1(Posted 2012) [#1]
Well into creating my first Monkey game using the Demo version and, as always, mightily impressed. However I've struck a real brick wall. Many of my games are word games and require looking up word lists to check whether a vaild word has been entered. In the past I've used random access and binary search to achieve a quick look up.

But Monkey does not seem to have any way of using external text files or any way of embedding the data in my program - am I missing something?

Peter


GfK(Posted 2012) [#2]
Loadstring is pretty much 'it'. Have to parse it yourself.


mulawa1(Posted 2012) [#3]
Thanks Gfk for the quick reply - I had missed loadstring - will check it out.

Peter


mulawa1(Posted 2012) [#4]
Works fine - especially making use of the example in the LoadString documentation - thanks again.

Peter