Exporting Incbin files

BlitzMax Forums/BlitzMax Programming/Exporting Incbin files

daaan(Posted 2005) [#1]
Is it possible to copy files that have been included with Incbin to a destination on a hard disk?


ziggy(Posted 2005) [#2]
Of course :D

You should see the IncBinPtr command, and the IncBinLen command in the BlitzMax documentation.


taxlerendiosk(Posted 2005) [#3]
In a single line:
SaveBank CreateStaticBank(IncbinPtr("MyIncbinFile.dat"),IncbinLen("MyIncbinFile.dat")), "SavedIncbinFile.dat"

Et voila!


daaan(Posted 2005) [#4]
thanks!


ImaginaryHuman(Posted 2005) [#5]
Putting so much stuff on a single line is cryptic to me. I like to have stuff separated out fairly much.


taxlerendiosk(Posted 2005) [#6]
Me too, I was just showing off.