Save a inbin file

Archives Forums/MacOS X Discussion/Save a inbin file

MacSven(Posted 2009) [#1]
Is it possible to save a incbin file from my source, that i have loaded before?


MacSven(Posted 2009) [#2]
Found that in this forum:

SaveBank CreateStaticBank(IncbinPtr("MyIncbinFile.dat"),IncbinLen("MyIncbinFile.dat")), "SavedIncbinFile.dat"

But under MacOS X it does not work. It save a file with nothing in it!


Tricky(Posted 2009) [#3]
This may not be an official method, but it does work. At least it worked on me:


CopyFile "incbin::IncBinFile.dat","SavedIncbinfile.dat"



Perhaps it is dirty code, but what works that works, right?


MacSven(Posted 2009) [#4]
OK, i will try it today.
Thanx


MacSven(Posted 2009) [#5]
Works perfectly for me! Thanx!


Tricky(Posted 2009) [#6]
You're welcome ;)