ReadData and External Data Files

BlitzMax Forums/BlitzMax Programming/ReadData and External Data Files

Sean Doherty(Posted 2005) [#1]
Anyone have an eaasy way to read data from an external or embeded data file? At the moment, I have been using the classic ReadData command. However, I really need something a big more expandable.

I am not sure if I am better off to merge all my data files into one big exe using Incbin and IncbinPtr or placing my data into an external data file? I could use an example or two of a recommended way of doing this kind of thing?

Thanks


skidracer(Posted 2005) [#2]
I suggest using Readline with an incbin'd text file and use a new line instead of a comma to separate your data, (use file=ReadFile("incbin::mydata.txt") to open an embedded text file).